Skip to content

Conversation

@r-ushil-gsa
Copy link

Fixes #1482. Let me know if there's anything I need to do!

@r-ushil-gsa r-ushil-gsa changed the title fix/concurrent pixi install fix: concurrent pixi install Sep 11, 2025
@lucascolley lucascolley added bug Something isn't working area:install Related to pixi install labels Sep 11, 2025
// 1. We have the exclusive write lock, so no one else is installing
// 2. If a previous process crashed, the state might be stale
// 3. The begin() method is idempotent if already in "Installing" state
write_guard.begin().await.map_err(|e| {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it makes sense to check for is_ready state, and if it was already installed early out?

We are doing the same in create_exec_prefix, so I'm thinking maybe we can apply this pattern here?

@nichmor
Copy link
Contributor

nichmor commented Oct 22, 2025

Small question - apart from using that pre-commit configuration, is there a way to test it on some examples?
I was trying to do pixi install & pixi install ( without your fix ) for the opencv example, but I can't trigger this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:install Related to pixi install bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pixi install / pixi run doesn't handle multiple concurrent invocations very well

3 participants