From a0da88834ceb9c577cefc60c3f77a3f29ccd9d1a Mon Sep 17 00:00:00 2001 From: David Duque Date: Tue, 21 Jul 2020 19:21:46 +0100 Subject: [PATCH] Terminate the status checks process pool before exiting --- management/status_checks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/status_checks.py b/management/status_checks.py index b1a5c68b..2d0b2c14 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -1038,10 +1038,12 @@ if __name__ == "__main__": if len(sys.argv) == 1: pool = multiprocessing.pool.Pool(processes=10) run_checks(False, env, ConsoleOutput(), pool) + pool.terminate() elif sys.argv[1] == "--show-changes": pool = multiprocessing.pool.Pool(processes=10) run_and_output_changes(env, pool) + pool.terminate() elif sys.argv[1] == "--check-primary-hostname": # See if the primary hostname appears resolvable and has a signed certificate.