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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user