[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

Andrey Vlasovskikh report at bugs.python.org
Tue Apr 6 20:21:43 CEST 2010


Andrey Vlasovskikh <andrey.vlasovskikh at gmail.com> added the comment:

Despite of several workarounds available on the Web, the problem persists. Almost any exception that is rised in `worker` function while putting or getting tasks from queues result in Pool hang up. Currently, `worker` is only aware of Exception descendants rised inside of the map function parameter.

I've written a unit test that checks if KeyboardInterrupts are handled normally. The source code may be included in `Lib/test/test_multiprocessing.py`.

----------
Added file: http://bugs.python.org/file16784/test_map_keyboard_interrput.py

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


More information about the Python-bugs-list mailing list