From 24fa21bef1b3b0e1c46074ff7cdfac46410079d5 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) (cherry picked from commit e2a867e97564aeffbf47a0532da21cfeee2b0deb) --- lms/envs/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index 77c4e63078bc..87ea3cb9f22b 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -2280,6 +2280,12 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring ################################# 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', +) + # Celery beat configuration CELERYBEAT_SCHEDULER = 'celery.beat:PersistentScheduler'