-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect StatefulPool from class methods
StatefulPool doesn't support batching over with class methods because it always passes `G` as the first argument to the worker function. If one of the `run_` methods in StatefulPool is called with a class method it can lead to a silent lock-up of the pool, which is very difficult to debug. Note: this bug does not appear unless n_parallel > 1
- Loading branch information
1 parent
b3a2899
commit 4b41d10
Showing
1 changed file
with
32 additions
and
5 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