-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-47075: Add shutdown_timeout to multiprocessing BaseManager #32112
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
I don't think that having two separated timeout parameters, one for wait() and a second for join(), is needed. I prefer to have a single value. The process should be able to handle the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the principle.
@pitrou: Would you mind reviewing the updated PR? I completed the doc and changed the behavior: kill the process if it is still alive shutdown_timeout seconds after being terminated. |
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.
Add an optional keyword 'shutdown_timeout' parameter to the
multiprocessing.BaseManager constructor.
Multiprocessing tests pass test.support.SHORT_TIMEOUT
to BaseManager.shutdown_timeout.
https://bugs.python.org/issue47075