[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +davin, pitrou versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-17 Thread Will Starms
Will Starms added the comment: I've realized that my patch may not be ideal for general-purpose use, but it's a good start for a discussion on the proper way to implement a timeout. My patch (which is based on a more involved modification to Pool) assumes that the joins

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-13 Thread Will Starms
Will Starms added the comment: A timeout alternative that raises TimeoutError -- Added file: https://bugs.python.org/file47220/cpython_raise_timeout.patch ___ Python tracker

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-13 Thread Will Starms
New submission from Will Starms : Pool's join function currently (3.6.3) lacks a timeout, which can cause the managing thread to sleep indefinitely when a pool worker hangs or starts misbehaving. Adding a timeout allows the owning thread to attempt a join and, after the