diff --git a/cms/djangoapps/contentstore/signals/handlers.py b/cms/djangoapps/contentstore/signals/handlers.py index 20c14089e0a6..53b09019d644 100644 --- a/cms/djangoapps/contentstore/signals/handlers.py +++ b/cms/djangoapps/contentstore/signals/handlers.py @@ -133,7 +133,10 @@ def listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable= if key_supports_outlines(course_key): # Push the course outline to learning_sequences asynchronously. - update_outline_from_modulestore_task.delay(course_key_str) + update_outline_from_modulestore_task.apply_async( + args=[course_key_str], + countdown=settings.BLOCK_STRUCTURES_SETTINGS.get('COURSE_PUBLISH_TASK_DELAY', 30), + ) if settings.COURSEGRAPH_DUMP_COURSE_ON_PUBLISH: # Push the course out to CourseGraph asynchronously.