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:
2
app.py
2
app.py
@@ -27,7 +27,7 @@ def init_app(configpath):
|
||||
schedulers = {r: BackgroundScheduler(daemon=True) for r in runners}
|
||||
for s in schedulers.values():
|
||||
s.start()
|
||||
atexit.register(s.shutdown) # first stop the schedulers
|
||||
atexit.register(s.shutdown, wait=False) # first stop the schedulers
|
||||
|
||||
atexit.register(print,
|
||||
"<><><><><><><><><><><><><><><><><><><><><><><><><>\n",
|
||||
|
||||
Reference in New Issue
Block a user