Skip to content

Commit 8c32695

Browse files
committed
Reenable the celery jobs I had paused during the offseason 🤦‍♂️
1 parent fa1886f commit 8c32695

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

draftnik/draftnik/celery.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
CELERY_TIMEZONE=settings.TIME_ZONE,
2020
CELERY_IMPORTS=("jobs.fpl_static", "jobs.squad_entries"),
2121
CELERYBEAT_SCHEDULE={
22-
# "fetch-static-data": {
23-
# "task": "draftnik.fetch_static_data",
24-
# "schedule": crontab(minute=0, hour="2,14"),
25-
# },
26-
# "fetch-next-fixtures": {
27-
# "task": "draftnik.fetch_next_fixtures",
28-
# "schedule": crontab(minute=0, hour=0, day_of_week="sunday"),
29-
# "kwargs": {"count": 5,},
30-
# },
31-
# "fetch-fixtures": {
32-
# "task": "draftnik.fetch_fixtures",
33-
# "schedule": crontab(minute=0, hour=0, day_of_month="1"),
34-
# },
22+
"fetch-static-data": {
23+
"task": "draftnik.fetch_static_data",
24+
"schedule": crontab(minute=0, hour="2,14"),
25+
},
26+
"fetch-next-fixtures": {
27+
"task": "draftnik.fetch_next_fixtures",
28+
"schedule": crontab(minute=0, hour=0, day_of_week="sunday"),
29+
"kwargs": {"count": 5,},
30+
},
31+
"fetch-fixtures": {
32+
"task": "draftnik.fetch_fixtures",
33+
"schedule": crontab(minute=0, hour=0, day_of_month="1"),
34+
},
3535
"refetch-unavailable-players": {
3636
"task": "draftnik.refetch_unavailable_players",
3737
"schedule": crontab(minute=0, hour="*/1"),

0 commit comments

Comments
 (0)