This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author TensorTom
Recipients TensorTom
Date 2018-10-02.23:16:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538522214.4.0.545547206417.issue34877@psf.upfronthosting.co.za>
In-reply-to
Content
Not sure if this goes in core or modules.

There is an inconsistency in the output of the attached script. From the docs I read it's supposed to have the behavior of:

"If something happens to one of the worker processes to cause it to exit unexpectedly, the ProcessPoolExecutor is considered “broken” and will no longer schedule tasks."

That script is supposed to exemplify that. Instead, if I run the code several times, I get the following output:

(bot-LP2ewIkY) ⋊> ~/w/p/b/bot on master ⨯ python brokenPool.py                                                                                                                                                                   18:54:55
getting the pid for one worker
killing process 4373
submitting another task
could not start new tasks: A process in the process pool was terminated abruptly while the future was running or pending.
(bot-LP2ewIkY) ⋊> ~/w/p/b/bot on master ⨯ python brokenPool.py                                                                                                                                                                   18:54:56
getting the pid for one worker
killing process 4443
submitting another task
could not start new tasks: A process in the process pool was terminated abruptly while the future was running or pending.
(bot-LP2ewIkY) ⋊> ~/w/p/b/bot on master ⨯ python brokenPool.py                                                                                                                                                                   18:54:57
getting the pid for one worker
killing process 4514
submitting another task  <----- (No exception thrown after this)


The exception isn't always thrown. This seems problematic to me. Related stack post: https://stackoverflow.com/questions/52617558/python-inconsistent-behavior-of-futures-processpoolexecutor
History
Date User Action Args
2018-10-02 23:16:54TensorTomsetrecipients: + TensorTom
2018-10-02 23:16:54TensorTomsetmessageid: <1538522214.4.0.545547206417.issue34877@psf.upfronthosting.co.za>
2018-10-02 23:16:54TensorTomlinkissue34877 messages
2018-10-02 23:16:54TensorTomcreate