Author vlasovskikh
Recipients brian.curtin, vlasovskikh
Date 2010-04-03.04:07:47
SpamBayes Score 0.000479665
Marked as misclassified No
Message-id <1270267669.64.0.789039141805.issue8296@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-03 04:07:49vlasovskikhsetrecipients: + vlasovskikh, brian.curtin
2010-04-03 04:07:49vlasovskikhsetmessageid: <1270267669.64.0.789039141805.issue8296@psf.upfronthosting.co.za>
2010-04-03 04:07:48vlasovskikhlinkissue8296 messages
2010-04-03 04:07:47vlasovskikhcreate