Skip to content

Commit

Permalink
gh-91231: multiprocessing BaseManager waits 1.0 second (#91701)
Browse files Browse the repository at this point in the history
Shutting down a multiprocessing BaseManager now waits for 1 second until
the process completes, rather than 0.1 second, after the process is
terminated.
  • Loading branch information
vstinner committed Apr 19, 2022
1 parent c213ccc commit a885f10
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 @@ -677,7 +677,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 a885f10

Please sign in to comment.