From f7ad96cf9b87c344706badafd4e0b7f2b76417aa Mon Sep 17 00:00:00 2001 From: Charles Machalow Date: Tue, 17 Dec 2024 15:59:04 -0800 Subject: [PATCH] Update Lib/concurrent/futures/process.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Lib/concurrent/futures/process.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index b69ed7e4492e77..50cc2a18d29875 100644 --- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -862,7 +862,9 @@ def terminate_workers(self, signal=signal.SIGTERM): Iterates through all of the current processes and sends the given signal if the process is still alive. - After terminating workers, the pool will be in a broken state and no longer usable. + After terminating workers, the pool will be in a broken state + and no longer usable (for instance, new tasks should not be + submitted). Args: signal: The signal to send to each worker process. Defaults to