Skip to content

Commit

Permalink
fix: xblock-poll's celery tasks were not registered (openedx#28019) (#…
Browse files Browse the repository at this point in the history
…590)

Co-authored-by: Braden MacDonald <braden@opencraft.com>
  • Loading branch information
Anas-hameed and bradenmacdonald authored Oct 25, 2024
1 parent 8891770 commit ba1e6b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2402,6 +2402,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'
Expand Down

0 comments on commit ba1e6b7

Please sign in to comment.