Skip to content
Snippets Groups Projects
Unverified Commit 6b781070 authored by Zainab Amir's avatar Zainab Amir Committed by GitHub
Browse files

Fix unregistered celery task (#21305)

openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
parent adb2c672
No related merge requests found
......@@ -1067,7 +1067,8 @@ WEBPACK_CONFIG_PATH = 'webpack.prod.config.js'
# Auto discover tasks fails to detect contentstore tasks
CELERY_IMPORTS = (
'cms.djangoapps.contentstore.tasks',
'openedx.core.djangoapps.bookmarks.tasks'
'openedx.core.djangoapps.bookmarks.tasks',
'openedx.core.djangoapps.ccxcon.tasks',
)
# Message configuration
......
......@@ -14,7 +14,7 @@ from openedx.core.djangoapps.ccxcon import api
log = get_task_logger(__name__)
@task()
@task(name='openedx.core.djangoapps.ccxcon.tasks.update_ccxcon')
def update_ccxcon(course_id, cur_retry=0):
"""
Pass through function to update course information on CCXCon.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment