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:
Zainab Amir
2019-08-08 11:32:17 +05:00
committed by GitHub
parent adb2c672e4
commit 6b78107081
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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.