Skip to content

Commit f45a116

Browse files
authored
config: Disable scheduled tasks that are no longer needed (#4381)
A majority of the scheduled tasks in this application pertain to ETL tasks that have been migrated to Learn. There is no need to continue running them in this application.
1 parent 90f03ee commit f45a116

File tree

1 file changed

+2
-56
lines changed

1 file changed

+2
-56
lines changed

open_discussions/settings_celery.py

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"task": "channels.tasks.evict_expired_access_tokens",
2222
"schedule": crontab(minute=0, hour="*"),
2323
},
24-
"send-unsent-emails-every-1-mins": {
24+
"send-unsent-emails-four-times-daily": {
2525
"task": "notifications.tasks.send_unsent_email_notifications",
26-
"schedule": crontab(minute="*"),
26+
"schedule": crontab(minute=0, hour="*/6"),
2727
},
2828
"send-frontpage-digests-every-1-days": {
2929
"task": "notifications.tasks.send_daily_frontpage_digests",
@@ -33,66 +33,12 @@
3333
"task": "notifications.tasks.send_weekly_frontpage_digests",
3434
"schedule": crontab(minute=0, hour=14, day_of_week=2), # 10am EST on tuesdays
3535
},
36-
"update_edx-courses-every-1-days": {
37-
"task": "course_catalog.tasks.get_mitx_data",
38-
"schedule": crontab(minute=30, hour=15), # 11:30am EST
39-
},
40-
"update-edx-files-every-1-weeks": {
41-
"task": "course_catalog.tasks.import_all_mitx_files",
42-
"schedule": crontab(
43-
minute=0, hour=16, day_of_week=1
44-
), # 12:00 PM EST on Mondays
45-
},
46-
"update-micromasters-courses-every-1-days": {
47-
"task": "course_catalog.tasks.get_micromasters_data",
48-
"schedule": crontab(minute=00, hour=15), # 11:00am EST
49-
},
5036
"update-podcasts": {
5137
"task": "course_catalog.tasks.get_podcast_data",
5238
"schedule": get_int(
5339
"PODCAST_FETCH_SCHEDULE_SECONDS", 60 * 60 * 2
5440
), # default is every 2 hours
5541
},
56-
"update-xpro-courses-every-1-days": {
57-
"task": "course_catalog.tasks.get_xpro_data",
58-
"schedule": crontab(minute=30, hour=17), # 1:30pm EST
59-
},
60-
"update-xpro-files-every-1-weeks": {
61-
"task": "course_catalog.tasks.import_all_xpro_files",
62-
"schedule": crontab(
63-
minute=0, hour=16, day_of_week=2
64-
), # 12:00 PM EST on Tuesdays
65-
},
66-
"update-mitxonline-courses-every-1-days": {
67-
"task": "course_catalog.tasks.get_mitxonline_data",
68-
"schedule": crontab(minute=30, hour=19), # 3:30pm EST
69-
},
70-
"update-mitxonline-files-every-1-weeks": {
71-
"task": "course_catalog.tasks.import_all_mitxonline_files",
72-
"schedule": crontab(
73-
minute=0, hour=16, day_of_week=3
74-
), # 12:00 PM EST on Wednesdays
75-
},
76-
"update-oll-courses-every-1-days": {
77-
"task": "course_catalog.tasks.get_oll_data",
78-
"schedule": crontab(minute=30, hour=18), # 2:30pm EST
79-
},
80-
"update-prolearn-courses-every-1-days": {
81-
"task": "course_catalog.tasks.get_prolearn_data",
82-
"schedule": crontab(minute=30, hour=21), # 5:30pm EST
83-
},
84-
"update-youtube-videos": {
85-
"task": "course_catalog.tasks.get_youtube_data",
86-
"schedule": get_int(
87-
"YOUTUBE_FETCH_SCHEDULE_SECONDS", 60 * 30
88-
), # default is every 30 minutes
89-
},
90-
"update-youtube-transcripts": {
91-
"task": "course_catalog.tasks.get_youtube_transcripts",
92-
"schedule": get_int(
93-
"YOUTUBE_FETCH_TRANSCRIPT_SCHEDULE_SECONDS", 60 * 60 * 12
94-
), # default is 12 hours
95-
},
9642
"update-managed-channel-memberships": {
9743
"task": "channels.tasks.update_memberships_for_managed_channels",
9844
"schedule": crontab(minute=30, hour=10), # 6:30am EST

0 commit comments

Comments
 (0)