Skip to content

fix: fix race condition where library is not in the store yet#826

Open
marslanabdulrauf wants to merge 1 commit into
mainfrom
marslan/12267-git-auto-export-missing-repo
Open

fix: fix race condition where library is not in the store yet#826
marslanabdulrauf wants to merge 1 commit into
mainfrom
marslan/12267-git-auto-export-missing-repo

Conversation

@marslanabdulrauf

Copy link
Copy Markdown
Contributor

What are the relevant tickets?

https://github.com/mitodl/hq/issues/12267

Description (What does it do?)

This pull request improves the reliability of exporting courses and libraries to GitHub by introducing better error handling for cases where content is not yet available in the database due to transaction timing. It adds a custom exception, ensures Celery tasks are dispatched only after database commits, and updates error handling in utility and task functions.

How can this be tested?

  1. Make sure it setup properly and configurations are correct
  2. Creating a new library should always create new repository
  3. Library repository's readme should have correct studio url

@arslanashraf7 arslanashraf7 self-assigned this Jul 9, 2026
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.

2 participants