You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
JackKelly
changed the title
If the main process dies then kill all worker processes
In Manager use multiprocessing.Pool not ProcessPoolExecutorNov 5, 2021
So, I'm pretty sure we want to use processes not threads because the tasks are CPU bound, and python threads run on a single CPU core due to the python global interpreter lock.
Don't worry, I can have a look at this issue real soon now
We probably want the worker processes to be demonic.
If that's not possible then maybe have Manager only send a single batch to each process at a time (so the workers will terminate faster)
noxdafox/pebble#76 suggests that ProcessPoolExecutor is not demonic, whilst multiprocessing.Pool is demonic
https://stackoverflow.com/questions/56237493/how-to-make-tasks-in-processpoolexecutor-behave-like-daemon-process suggests we should be using multiprocessing.Pool
The text was updated successfully, but these errors were encountered: