1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

donn't wait for the schedulers on shutdown

This commit is contained in:
2016-06-14 15:11:36 +02:00
parent 6c9c4cbac5
commit 46ce406b5a

2
app.py
View File

@@ -27,7 +27,7 @@ def init_app(configpath):
schedulers = {r: BackgroundScheduler(daemon=True) for r in runners} schedulers = {r: BackgroundScheduler(daemon=True) for r in runners}
for s in schedulers.values(): for s in schedulers.values():
s.start() s.start()
atexit.register(s.shutdown) # first stop the schedulers atexit.register(s.shutdown, wait=False) # first stop the schedulers
atexit.register(print, atexit.register(print,
"<><><><><><><><><><><><><><><><><><><><><><><><><>\n", "<><><><><><><><><><><><><><><><><><><><><><><><><>\n",