Skip to content

fix: operation was cancelled error#5287

Merged
tdejager merged 2 commits intoprefix-dev:mainfrom
baszalmstra:fix-operation-was-cancelled
Jan 14, 2026
Merged

fix: operation was cancelled error#5287
tdejager merged 2 commits intoprefix-dev:mainfrom
baszalmstra:fix-operation-was-cancelled

Conversation

@baszalmstra
Copy link
Contributor

Description

This fixes the dreaded operation was cancelled error. This was caused by a race condition where an error cause the cancellation of another task which then raced quicker to the pixi frontend then the actual error. With this PR a coalesced task that errors sends the error to all pending tasks instead of only to one and cancelling the others. This ensures that an error is always returned to the frontend.

Fixes #5200

How Has This Been Tested?

I tested this locally in a reproducer case that I happened to have.

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude Opus 4.5

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

@baszalmstra baszalmstra requested a review from tdejager January 13, 2026 16:01
let mut verify_futures = FuturesUnordered::new();
for platform in platforms {
match verify_platform_satisfiability(
verify_futures.push(verify_platform_satisfiability(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a little bonus addition which parallelizes the satisfiability check of source dependencies for different environments.

@baszalmstra baszalmstra force-pushed the fix-operation-was-cancelled branch from 421289b to 6a8ccb3 Compare January 13, 2026 16:44
@tdejager tdejager merged commit 7f4ae59 into prefix-dev:main Jan 14, 2026
37 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.

the operation was cancelled error while solving

2 participants