Fix build: use @shared_task for update_outline_from_modulestore_task (#26216)
Update to make update_outline_from_modulestore_task use @shared_task and @set_code_owner_attribute.
This commit is contained in:
@@ -563,7 +563,8 @@ def import_olx(self, user_id, course_key_string, archive_path, archive_name, lan
|
||||
LOGGER.info(u'Course %s Entrance exam imported', course.id)
|
||||
|
||||
|
||||
@task(name='cms.djangoapps.contentstore.tasks.update_outline_from_modulestore_task')
|
||||
@shared_task
|
||||
@set_code_owner_attribute
|
||||
def update_outline_from_modulestore_task(course_key_str):
|
||||
"""
|
||||
Celery task that creates a learning_sequence course outline.
|
||||
|
||||
Reference in New Issue
Block a user