From e4099d642d0ea467fa79f5114f5693903072637f Mon Sep 17 00:00:00 2001 From: j Date: Fri, 25 Aug 2023 00:09:38 +0200 Subject: [PATCH] update_queued in crontab only --- tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 066466c..1174567 100644 --- a/tasks.py +++ b/tasks.py @@ -14,11 +14,12 @@ import annotation.models import text.models -@app.task(queue='encoding') +@app.task(ignore_results=True, queue='encoding') def cron(**kwargs): update_double_imdb() outofcopyright() update_keywords() + update_queued() def outofcopyright(): @@ -56,7 +57,7 @@ def update_keywords(): t.save() -@app.task(queue='encoding') +@app.task(ignore_results=True, queue='encoding') def update_queued(): import archive.models l = itemlist.models.List.get('j:Queued') @@ -77,5 +78,4 @@ def update_queued(): @app.on_after_finalize.connect def setup_periodic_tasks(sender, **kwargs): sender.add_periodic_task(crontab(hour=6, minute=0), cron.s()) - sender.add_periodic_task(crontab(minute=0), update_queued.s())