Skip to content
Snippets Groups Projects
Commit 1179f4d1 authored by David Trattnig's avatar David Trattnig
Browse files

Proper graceful shutdown.

parent 0056ac39
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,8 @@ def shutdown():
"""
Called when the application shuts down.
"""
sync_job.exit()
if sync_job:
sync_job.exit()
with app.app_context():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment