fix cron on start

This commit is contained in:
Mateusz Gruszczyński 2025-02-23 23:08:30 +01:00
parent 1e910e347c
commit 27f969cc4b

2
app.py
View File

@ -1397,7 +1397,7 @@ if __name__ == '__main__':
schedule_auto_export_job()
schedule_auto_binary_backup_job()
scheduler.add_job(func=cleanup_old_logs, trigger='interval', days=1, id="cleanup_logs_job")
reschedule_jobs()
scheduler.start()
atexit.register(lambda: scheduler.shutdown())
app.run(host='0.0.0.0', port=5581, use_reloader=False, debug=True)