From 4fde69441ce0297f0e5495e192f2d78d236e3dfd Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Thu, 28 Jan 2021 11:22:39 -0500 Subject: [PATCH] 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. --- cms/djangoapps/contentstore/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/tasks.py b/cms/djangoapps/contentstore/tasks.py index cdf3053b1a..90935463a5 100644 --- a/cms/djangoapps/contentstore/tasks.py +++ b/cms/djangoapps/contentstore/tasks.py @@ -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.