This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nemeskeyd
Recipients docs@python, nemeskeyd
Date 2021-02-23.15:55:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614095710.79.0.438522017133.issue43306@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-02-23 15:55:10nemeskeydsetrecipients: + nemeskeyd, docs@python
2021-02-23 15:55:10nemeskeydsetmessageid: <1614095710.79.0.438522017133.issue43306@roundup.psfhosted.org>
2021-02-23 15:55:10nemeskeydlinkissue43306 messages
2021-02-23 15:55:10nemeskeydcreate