-
Notifications
You must be signed in to change notification settings - Fork 61
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
WorkingPool unexpected behaviour when workers are on different node #1134
Comments
Thanks for reporting, will look soon |
btw think I've pushed a error in SPM in example before 🙈 |
Probably there should be a better way to fix :) |
Actually looking back again into issue and thinking a bit more about, introduction of some type like Making worker reference either just weak or just strong will both give you a problem:
So you (or system) need to know if it's local or remote reference for WorkerPool. And this PR is actually should fix it. 🤔 |
Description
WorkingPool unexpected behaviour when workers are on different node
Steps to reproduce
https://github.com/akbashev/WorkerPoolTest
Two nodes:
If you run an example and submit some work—WorkingPool will terminate all workers in
selectWorker()
function, seems like actor is none here:Expected behavior
Pool is routing job to workers, e.g. will log:
Environment
MacOS 14.0 Beta (23A5286i), Xcode 15.0 Beta 4 (15A5195m), Swift 5.9
The text was updated successfully, but these errors were encountered: