Message387577
There is an inconsistency in how multiprocessing.Pool handles exceptions thrown in the workers:
- exceptions raised by the mapped function stop execution right away
- exceptions raised in an initializer are ignored and the pool continues spawning new workers indefinitely, each of them failing.
I believe the behavior should be the same in both cases, and of the two, the first one is preferable (especially since that's what people are used to).
The documentation doesn't cover how exceptions are handled in pools, either. |
|
Date |
User |
Action |
Args |
2021-02-23 15:55:10 | nemeskeyd | set | recipients:
+ nemeskeyd, docs@python |
2021-02-23 15:55:10 | nemeskeyd | set | messageid: <1614095710.79.0.438522017133.issue43306@roundup.psfhosted.org> |
2021-02-23 15:55:10 | nemeskeyd | link | issue43306 messages |
2021-02-23 15:55:10 | nemeskeyd | create | |
|