Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strict process manager routing #243

Merged
merged 4 commits into from
Jan 21, 2019
Merged

Conversation

slashdotdash
Copy link
Member

@slashdotdash slashdotdash commented Jan 21, 2019

Add :start! and :continue! for strict process routing replies to process manager interested?/1 callback.

Strict routing enforces the following validation checks:

  • {:start!, process_uuid} - validate process does not already exist.
  • {:continue!, process_uuid} - validate process already exists.

If the check fails an error will be passed to the error/3 callback function:

  • {:error, {:start!, :process_already_started}}
  • {:error, {:continue!, :process_not_started}}

The error/3 function can choose to :stop the process or :skip the problematic event.

Fixes #212.

@slashdotdash slashdotdash merged commit 155e805 into master Jan 21, 2019
@slashdotdash slashdotdash deleted the feature/strict-process-routing branch January 21, 2019 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant