Skip to content

Commit 5e503d6

Browse files
committed
fix celery schedule
1 parent b5ad7b2 commit 5e503d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adhocracy-plus/config/settings/production.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from celery.schedules import crontab
1+
from datetime import timedelta
22

33
from .base import *
44

@@ -37,14 +37,14 @@
3737
CELERY_BEAT_SCHEDULE = {
3838
"send-recently-started-project-notifications": {
3939
"task": "send_recently_started_project_notifications",
40-
"schedule": crontab.from_string("0 0 */3 * *"),
40+
"schedule": timedelta(days=3),
4141
},
4242
"send-recently-completed-project-notifications": {
4343
"task": "send_recently_completed_project_notifications",
44-
"schedule": crontab.from_string("0 0 */3 * *"),
44+
"schedule": timedelta(days=3),
4545
},
4646
"send_upcoming-event-notifications": {
4747
"task": "send_upcoming_event_notifications",
48-
"schedule": crontab.from_string("0 0 */3 * *"),
48+
"schedule": timedelta(days=3),
4949
},
5050
}

0 commit comments

Comments
 (0)