-
Couldn't load subscription status.
- Fork 6
Support multiple target actors for one type of dispatch #104
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
27252a8
ActorDispatcher: Support dispatches referring to different actors
Marenz df2f8a1
Remove unused async keyword from Dispatcher.start
Marenz 5e7bfb9
Fix broken MergeByTypeTarge.identity function
Marenz e4fea21
Add `Dispatcher.manage` to manage dispatchable actors
Marenz df88828
Limit status update receiver queue to 1 and disable warning
Marenz 2c29ab7
Rename: Use start/stop dispatching terminology
Marenz bd75c0f
ActorDispatcher: Rename map_dispatch to dispatch_identity
Marenz 07a077e
ActorDispatcher: Make `None` default identity (id)
Marenz 5ddb903
Update readme, make it ready for release
Marenz 484c90b
Make the dispatcher instance awaitable
Marenz 94b8efe
Catch & log exceptions on actor startup
Marenz f3b4146
Don't warn for changing dispatch parameters: It's a normal action
Marenz e0c5d8d
Turn `Dispatcher` into a background service
Marenz 23cc65f
Wait for bg services as well in `Dispatcher.wait`
Marenz 9747b15
Don't pass a name to Dispatcher background service
Marenz 7d43537
Clear dispatches after waiting for them to stop
Marenz 6c34157
Remove abstraction level `MergeByIdentity` and make it root instead
Marenz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get this change, the commit message says " Don't warn for changing dispatch parameters: It's a normal action ", does this mean that
_start_actoris called every time a dispatch is updated? If so, I would even make this log a debug or remove it completely, because it seems misleading, as it was never the intention to start the actor if it was just a dispatch update.If there is a way to tell if this is called because a dispatch just started or was updated, then maybe we can log more meaningful messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, there is a way, but it's not available to the actor_dispatcher (without restructuring).
The idea is that the dispatch instance tells us the desired state, no matter the previous state, so from that perspectives it doesn't matter whether it was an update or a new dispatch, both cases should do both, start or update a running actor instance..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make this a debug then, because it is completely normal and probably not very useful to get that info when things are running. But not hung to block this PR on.