spegling av
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-06-29 22:30:53 +00:00
BUGFIX: Correctly handle the multiprocessing for run_checks in the management daemon (#2163)
See discussion here: #2083 Co-authored-by: Steve Hay <hay.steve@gmail.com>
This commit is contained in:
förälder
d584a41e60
incheckning
1e1a054686
@ -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')
|
||||
|
Laddar…
Referens i nytt ärende
Block a user