GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit 59a63ce8 authored by U. Artie Eoff's avatar U. Artie Eoff Committed by Chad Versace
Browse files

Respond to KeyboardInterrupt exception.

Respond to KeyboardInterrupt exception so that execution can
clean up and write a summary file before shutting down.
parent 4d87ef44
......@@ -71,5 +71,10 @@ class ThreadPools(Singleton):
def joinAll(self):
pools = list(self.threadpools.itervalues())
for pool in pools:
pool.wait()
try:
for pool in pools:
pool.wait()
except KeyboardInterrupt:
pools = list(self.threadpools.itervalues())
for pool in pools:
pool.dismissWorkers(len(pool.workers))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment