[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly
Ask Solem
report at bugs.python.org
Mon Jul 12 22:08:34 CEST 2010
Ask Solem <askh at opera.com> added the comment:
termination.patch, in the result handler you've added:
while cache and thread._state != TERMINATE and not failed
why are you terminating the second pass after finding a failed process?
Unpickleable errors and other errors occurring in the worker body are not exceptional cases, at least not now that the pool is supervised by _handle_workers. I think the result should be set also in this case, so the user can inspect the exception after the fact.
I have some other suggestions too, so I will review this patch tomorrow.
For shutdown.patch, I thought this only happened in the worker handler, but you've enabled this for the result handler too? I don't care about the worker handler, but with the result handler I'm worried that I don't know what ignoring these exceptions actually means. For example, is there a possibility that we may lose results at shutdown?
----------
nosy: +asksol
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9205>
_______________________________________
More information about the Python-bugs-list
mailing list