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

feat: lock when indexing #1030

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Jan 22, 2025

I shamefully copied the code from rattler_repodata_gateway to add a LockedFile to the indexing.

We would like to prevent multiple instances of e.g. rattler-build to write to the repodata.json at the same time.

A companion PR is in rattler-build about compressing the packages into a temporary file, and then atomically renaming them once they are finished.

Both are made in order to improve the experience when running multiple builds in parallel.

@wolfv wolfv force-pushed the lock-when-indexing branch from 5825912 to 84f402f Compare January 22, 2025 16:09
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.

1 participant