From 5e1dcc933f8cdf4502bd9d98fb15ec99287cca0b Mon Sep 17 00:00:00 2001 From: downtownallday Date: Sun, 18 Sep 2022 15:42:15 -0400 Subject: [PATCH] close the multiprocessing pool to avoid hang --- management/daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/daemon.py b/management/daemon.py index c9913b91..3e3a4fbb 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -581,6 +581,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')