MT#56231 workaround for django-celery-beat issue, take two

Change-Id: I797ab29e1caa980b93057614e80526987a790bff
mprokop/trixie
Victor Seva 3 years ago
parent f730b70ee6
commit e49ac3c975

@ -153,17 +153,17 @@ CELERY_BEAT_SCHEDULE = {
# Executes every Sunday morning at 7:30 A.M # Executes every Sunday morning at 7:30 A.M
"purge-trunk": { "purge-trunk": {
"task": "repoapi.tasks.jbi_purge", "task": "repoapi.tasks.jbi_purge",
"schedule": crontab(hour=7, minute=30, day_of_week="sun"), "schedule": crontab(hour=7, minute=30, day_of_week=0),
"args": ("none", 4), "args": ("none", 4),
}, },
"purge-none": { "purge-none": {
"task": "repoapi.tasks.jbi_purge", "task": "repoapi.tasks.jbi_purge",
"schedule": crontab(hour=7, minute=30, day_of_week="sun"), "schedule": crontab(hour=7, minute=30, day_of_week=0),
"args": (None, 1), "args": (None, 1),
}, },
"gerrit-cleanup": { "gerrit-cleanup": {
"task": "gerrit.tasks.cleanup",
"schedule": crontab(hour=7, minute=30, day_of_month=15), "schedule": crontab(hour=7, minute=30, day_of_month=15),
"tasks": "gerrit.tasks.cleanup",
"args": (4), "args": (4),
}, },
} }

Loading…
Cancel
Save