From 90323049eb4b2b8e245ff3040620eef26193d15b Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Mon, 31 Mar 2025 03:02:28 -0300 Subject: [PATCH] fix(common:tasks): reset_demo_data not running via cron --- app/apps/common/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/apps/common/tasks.py b/app/apps/common/tasks.py index e9c33b4..cd75446 100644 --- a/app/apps/common/tasks.py +++ b/app/apps/common/tasks.py @@ -44,9 +44,9 @@ async def remove_expired_sessions(timestamp=None): ) -@app.periodic(cron="0 6 * * *") +@app.periodic(cron="0 8 * * *") @app.task(name="reset_demo_data") -def reset_demo_data(): +def reset_demo_data(timestamp=None): """ Wipes the database and loads fresh demo data if DEMO mode is active. Runs daily at 6:00 AM.