-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ingest): avoid multiprocessing "fork" start method
We use threads in a variety of places within our CLI. The multiprocessing "fork" start method is not safe to use with threads. MacOS and Windows already default to "spawn", and Linux will as well starting in Python 3.14. See https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods This fixes a bug where the classification module would deadlock when using more than one worker process. Eventually it may make sense to use "forkserver" as the default where available, but we can revisit that in the future.
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters