Message102223
Yes, I've come up with the same solution by myself, but it cannot cover all the cases of the bug. It works only for cases when ^C is hit during a call to the users' function: http://stackoverflow.com/questions/1408356/keyboard-interrupts-with-pythons-multiprocessing-pool/2561809#2561809
If the user is "lucky", he may hit ^C during getting or putting data into the queues in multiprocessing.pool.worker. To reproduce such a case, you may insert `sleep(10)` before `task = get()` or `put((job, i, result))`, for example. I've encountered such cases just by running test examples several times. |
|
Date |
User |
Action |
Args |
2010-04-03 04:07:49 | vlasovskikh | set | recipients:
+ vlasovskikh, brian.curtin |
2010-04-03 04:07:49 | vlasovskikh | set | messageid: <1270267669.64.0.789039141805.issue8296@psf.upfronthosting.co.za> |
2010-04-03 04:07:48 | vlasovskikh | link | issue8296 messages |
2010-04-03 04:07:47 | vlasovskikh | create | |
|