Skip to content

Commit

Permalink
pythongh-91231: multiprocessing BaseManager waits 1.0 second (pythonG…
Browse files Browse the repository at this point in the history
…H-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 a885f10)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
2 people authored and hello-adam committed Jun 2, 2022
1 parent 133a504 commit 58aed0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/multiprocessing/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _finalize_manager(process, address, authkey, state, _Client):
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')

Expand Down

0 comments on commit 58aed0c

Please sign in to comment.