[issue35479] multiprocessing.Pool.join() always takes at least 100 ms

STINNER Victor report at bugs.python.org
Fri Dec 14 06:56:25 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

_worker_handler has two issues:

* It polls the worker status every status every 100 ms: I created bpo-35493 to investigate how to avoid that
* After close() or terminate() has been called, it loops until self._cache is empty. I would like to use result.wait(), but a result never completes after terminate(): I created bpo-35478 to see if tasks can be unblocked in that case (to ensure that result.wait() completes after terminate().

----------
dependencies: +multiprocessing.Pool._worker_handler(): use SIGCHLD to be notified on worker exit, multiprocessing: ApplyResult.get() hangs if the pool is terminated

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35479>
_______________________________________


More information about the Python-bugs-list mailing list