PADV-794 - fix: delay update_outline_from_modulestore_task after course publish. #110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Once a course is created in studio the
course_published
signal is emitted, therefore some receivers trigger some async tasks which end up failing because the modulestore can not find the latest data, which resulted in errors related to not being able to find the course, Check this discussion for more information and how to replicate those errors. The issue for us comes when working with CCX, this same error raises from time to time when one creates a CCX, therefore the CCX's outline is not generated properly and the course-ware is not showed. Currently it requires that someone manually regenerates the outline athttp://localhost:18000/admin/contentstore/courseoutlineregenerate/
Changes
This change is based on: openedx#31307
How to replicate the issue?
Try creating multiple CCXs in stage, some of them might raise an error when loading the course.
How to test?
Create a course, the outcome should be the same as before.
Ticket
PADV-794