From 9b2d2ac7d9b9bee9f1d112067ad118e8c4ce7fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Mon, 24 Feb 2025 08:19:24 +0100 Subject: [PATCH] fix cron on start --- app.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app.py b/app.py index 8a96505..ad2c1a9 100644 --- a/app.py +++ b/app.py @@ -1392,11 +1392,6 @@ def delete_old_logs(): if __name__ == '__main__': with app.app_context(): - scheduler = BackgroundScheduler() - schedule_retention_job() - 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())