]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91231: Add shutdown_timeout to multiprocessing BaseManager (#32112)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Apr 2022 14:27:00 +0000 (16:27 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Apr 2022 14:27:00 +0000 (16:27 +0200)
commit061a8bf77c80036bed3ef4973fe0c99705c83fc6
tree19c2418fd5877d4b3cc211e7f40eff5ad5397a08
parent74070085da5322ac83c954f101f2caa150655be2
gh-91231: Add shutdown_timeout to multiprocessing BaseManager (#32112)

Add an optional keyword 'shutdown_timeout' parameter to the
multiprocessing.BaseManager constructor. Kill the process if
terminate() takes longer than the timeout.

Multiprocessing tests pass test.support.SHORT_TIMEOUT
to BaseManager.shutdown_timeout.
Doc/library/multiprocessing.rst
Lib/multiprocessing/managers.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2022-04-19-15-30-06.gh-issue-91231.AWy4Cs.rst [new file with mode: 0644]