[issue43306] Error in multiprocessing.Pool's initializer doesn't stop execution
New submission from Dávid Nemeskey <nemeskeyd@gmail.com>: 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. ---------- assignee: docs@python components: Documentation, Library (Lib) messages: 387577 nosy: docs@python, nemeskeyd priority: normal severity: normal status: open title: Error in multiprocessing.Pool's initializer doesn't stop execution type: behavior versions: Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43306> _______________________________________
Terry J. Reedy <tjreedy@udel.edu> added the comment: Can you add a minimal example with the ignore behavior? ---------- assignee: docs@python -> nosy: +davin, pitrou, terry.reedy _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43306> _______________________________________
participants (2)
-
Dávid Nemeskey
-
Terry J. Reedy