gh-91231: multiprocessing BaseManager waits 1.0 second (GH-91701)

Shutting down a multiprocessing BaseManager now waits for 1 second until
the process completes, rather than 0.1 second, after the process is
terminated.
(cherry picked from commit a885f10325)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Miss Islington (bot) 2022-04-19 08:29:57 -07:00 committed by GitHub
parent 63af7b3b11
commit 3b6072e7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -669,7 +669,7 @@ class BaseManager(object):
if hasattr(process, 'terminate'):
util.info('trying to `terminate()` manager process')
process.terminate()
process.join(timeout=0.1)
process.join(timeout=1.0)
if process.is_alive():
util.info('manager still alive after terminate')