Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update only relevant fields in analytics loader #4498

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

zawan-ila
Copy link
Contributor

PROD-3899

Currently, in the analytics loader, program objects may be "cached" in memory until all course runs and courses have been processed, and then eventually be saved. The processing for all courses and courseruns may take a considerable amount of time. Hence any updates to the cached program objects during this time will be lost. This PR "fixes" the program save call to only modify the enrollment_count and recent_enrollment_count fields. We have also done the same for the courserun save, even though the chances of a lost update there are tiny, as they are saved immediately after being fetched.

A similar fix was done for courses in 4487

@zawan-ila zawan-ila changed the title fix: race condition in analytics loader fix: update only relevant fields in analytics loader Nov 28, 2024
@zawan-ila zawan-ila merged commit 9c392ea into openedx:master Nov 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants