fix cron on start

This commit is contained in:
Mateusz Gruszczyński
2025-02-24 08:26:21 +01:00
parent 9b2d2ac7d9
commit 05abc1c795
3 changed files with 8 additions and 4 deletions

1
app.py
View File

@@ -1393,6 +1393,5 @@ def delete_old_logs():
if __name__ == '__main__':
with app.app_context():
reschedule_jobs()
scheduler.start()
atexit.register(lambda: scheduler.shutdown())
app.run(host='0.0.0.0', port=5581, use_reloader=False, debug=True)