mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-16 17:47:23 +01:00
BUGFIX: Correctly handle the multiprocessing for run_checks in the management daemon.
This commit is contained in:
@@ -571,6 +571,8 @@ def system_status():
|
|||||||
# Create a temporary pool of processes for the status checks
|
# Create a temporary pool of processes for the status checks
|
||||||
with multiprocessing.pool.Pool(processes=5) as pool:
|
with multiprocessing.pool.Pool(processes=5) as pool:
|
||||||
run_checks(False, env, output, pool)
|
run_checks(False, env, output, pool)
|
||||||
|
pool.close()
|
||||||
|
pool.join()
|
||||||
return json_response(output.items)
|
return json_response(output.items)
|
||||||
|
|
||||||
@app.route('/system/updates')
|
@app.route('/system/updates')
|
||||||
|
|||||||
Reference in New Issue
Block a user