-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fixed WorkerPool to handle remote actors properly #1164
base: main
Are you sure you want to change the base?
Conversation
Hm, would be nice to add test to check remote actors also. |
/// | ||
/// We could consider implementing a strict round robin strategy which remains strict even | ||
/// as new workers arrive in the pool. | ||
case simpleRoundRobin | ||
} |
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.
Again we should make a struct with an underlying enum inside it, and make static functions to create instances. Otherwise by making the enum public we'll never be able to add new cases without a major release.
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.
Looks good, just needs to be careful with the enums and maybe add one more test?
Currently WorkerPool:
WorkItem
andWorkResult
are not marked asSendable
This PR fixes this, basically cherry picked changes from this PR #1159 and updated tests