From f730b70ee6dec0750ef84892a92b7ba23dc9b303 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 21 Jul 2023 11:39:16 +0200 Subject: [PATCH] MT#56231 workaround for django-celery-beat issue * https://github.com/celery/django-celery-beat/issues/647 * https://github.com/Salamek/cron-descriptor/issues/65 * spotted solution at https://github.com/WeblateOrg/weblate/commit/82f1370155bbf6f620ecdb4759ecb960b4171aff Change-Id: I2da6f0f65050d7c7b97609c0505c4647915d52c7 --- repoapi/settings/prod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repoapi/settings/prod.py b/repoapi/settings/prod.py index a868500..37c7a7c 100644 --- a/repoapi/settings/prod.py +++ b/repoapi/settings/prod.py @@ -153,12 +153,12 @@ CELERY_BEAT_SCHEDULE = { # Executes every Sunday morning at 7:30 A.M "purge-trunk": { "task": "repoapi.tasks.jbi_purge", - "schedule": crontab(hour=7, minute=30, day_of_week="sunday"), + "schedule": crontab(hour=7, minute=30, day_of_week="sun"), "args": ("none", 4), }, "purge-none": { "task": "repoapi.tasks.jbi_purge", - "schedule": crontab(hour=7, minute=30, day_of_week="sunday"), + "schedule": crontab(hour=7, minute=30, day_of_week="sun"), "args": (None, 1), }, "gerrit-cleanup": {