From 1e1a0546868cb062ba4057cc7587f7d6c175c18b Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Sat, 24 Sep 2022 09:56:27 -0400 Subject: [PATCH] BUGFIX: Correctly handle the multiprocessing for run_checks in the management daemon (#2163) See discussion here: #2083 Co-authored-by: Steve Hay --- management/daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/daemon.py b/management/daemon.py index dc59c19b..cbbfd6bf 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -571,6 +571,8 @@ def system_status(): # Create a temporary pool of processes for the status checks with multiprocessing.pool.Pool(processes=5) as pool: run_checks(False, env, output, pool) + pool.close() + pool.join() return json_response(output.items) @app.route('/system/updates')