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:
David Ormsbee
2021-01-28 11:22:39 -05:00
committed by GitHub
parent 5353324c80
commit 4fde69441c

View File

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