Skip to content

Commit

Permalink
Add retry_emails and delete_old_emails to celery beat
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed May 31, 2024
1 parent 6dec2ca commit c4fb18e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/open_inwoner/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,15 @@
CELERY_BEAT_SCHEDULE = {
"Import ZGW data": {
"task": "Import ZGW data",
"schedule": crontab(hour=7, minute=0),
"schedule": crontab(minute="0", hour="7", day="*"),
},
"Retry emails": {
"task": "django_yubin.tasks.retry_emails",
"schedule": crontab(minute="1", hour="*", day="*"),
},
"Delete old emails": {
"task": "django_yubin.tasks.delete_old_emails",
"schedule": crontab(minute="0", hour="6", day="*"),
},
}

Expand Down

0 comments on commit c4fb18e

Please sign in to comment.