Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use multiprocessing spawn mode instead of fork
Summary: In some cases, `multiprocessing.Pool` seems to be stuck when starting workers. This might be related to some threads being started before `multiprocessing.Pool` which have issues with forking. Let's use `multiprocessing.get_context("spawn")` since it avoid those problems by using `fork` followed immediately by `execve`. Also note that the current `fork` strategy will be deprecated in python 3.14 anyway. Reviewed By: compositor Differential Revision: D53471525 fbshipit-source-id: 3ea502ad9cd7b470da80bf48809d2d5c32910418
- Loading branch information