commit | 12c51791c21abe79906fca7953779b2fa50315af | [log] [tgz] |
---|---|---|
author | Markus Hosch <Markus.Hosch@bmw.de> | Tue Jan 23 11:14:32 2018 +0100 |
committer | Markus Hosch <Markus.Hosch@bmw.de> | Thu Feb 08 13:55:52 2018 +0100 |
tree | 95a343298ab2ca87147b4711b27daa3e8c4ee1a1 | |
parent | bdcd29b8fe4cca3d1e9d2b3ea448fe59309601c8 [diff] |
Cleanly shutdown zuul scheduler if startup fails At the moment, sys.exit is used to terminate the scheduler in case an exception is thrown during startup phase. However, since not all remaining threads were either daemonized or stopped, sys.exit waited indefinitely. This change uses Scheduler.stop before exiting so that all non-daemonized threads are terminated before exit. Change-Id: I9e1a753e897276b0b0f5c1b5735d05f1cfa8f9f1