[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

Benedikt Sauer report at bugs.python.org
Thu Aug 20 09:34:55 CEST 2015


Benedikt Sauer added the comment:

Actually I think that this may consist of multiple issues:

1. http://bugs.python.org/issue8323 (closed as wont-fix): multiprocessing.Queue should throw a sensible error if a Queue element can't be unpickled, however the user managed to create that
2. The worker process should prevent unpicklable ResultItems to be put on the Queue
3. The parent thread in ProcessPoolExecutor should handle the exceptions by setting its broken flag and at least trying to cleanly shut down

----------
title: Raising an exception that is unable to be unpickled causes hang in ProcessPoolExecutor -> Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24900>
_______________________________________


More information about the Python-bugs-list mailing list