Replies: 1 comment
-
|
This indeed seems like an issue. Would it be solved if the actor pool simply created a new worker when it detects on is down? It already does that, but since the errors in your example occur during on_start, it fails before its linked. So perhaps when you send a message, and a worker is detected as not running, it can just start that worker back up? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The curent implementation of ActorPool assumes the factor always succeed in starting works. However, this is not always the case, for instance, if I'm starting workers that will listen on a certain UDP/TCP Port they might fail because of OS permissions. In the current implementation there's no way to tell if the works have started and how many are healthy, or away to terminate the pool if a min number of workers are not running.
Am I missing the point of the ActorPool, or people think there's a need to extend its API to be more robust to failures?
I put a simple test case to show the issue:
Beta Was this translation helpful? Give feedback.
All reactions