From e2a867e97564aeffbf47a0532da21cfeee2b0deb Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Wed, 30 Jun 2021 04:10:56 -0700 Subject: [PATCH] fix: xblock-poll's celery tasks were not registered (#28019) --- lms/envs/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index f0051b8f39..eb6efe83b7 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -2593,6 +2593,12 @@ DEBUG_TOOLBAR_PATCH_SETTINGS = False ################################# CELERY ###################################### +CELERY_IMPORTS = ( + # Since xblock-poll is not a Django app, and XBlocks don't get auto-imported + # by celery workers, its tasks will not get auto-discovered: + 'poll.tasks', +) + # Message configuration CELERY_TASK_SERIALIZER = 'json'