Skip to content

Commit

Permalink
fix: delay update_outline_from_modulestore_task after course publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacatove committed Dec 4, 2023
1 parent 43633ed commit f6c0419
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cms/djangoapps/contentstore/signals/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,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.
Expand Down

0 comments on commit f6c0419

Please sign in to comment.