Skip to content

fix: fix freeze and update examples#5255

Merged
baszalmstra merged 5 commits intoprefix-dev:mainfrom
baszalmstra:fix-freeze-and-update-examples
Jan 9, 2026
Merged

fix: fix freeze and update examples#5255
baszalmstra merged 5 commits intoprefix-dev:mainfrom
baszalmstra:fix-freeze-and-update-examples

Conversation

@baszalmstra
Copy link
Contributor

Description

Fixes a nasty sporadic freeze, and updates some of the examples to use our nightly (pixi-build-backends) channel.

How Has This Been Tested?

All tests in CI are fixing.

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.

for tx in pending.drain(..) {
match tx.send(Err(err)) {
Ok(_) => return,
Ok(_) => break,
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 was causing the freeze. Because previously we immediately returned we didnt actually drain the entire array. With break we break out of the loop, after the look the pending array is reset which then cancels the rest.

Copy link
Contributor

Choose a reason for hiding this comment

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

Very good catch!

@baszalmstra baszalmstra marked this pull request as ready for review January 9, 2026 15:53
@baszalmstra baszalmstra requested a review from hunger January 9, 2026 15:54
Copy link
Contributor

@hunger hunger left a comment

Choose a reason for hiding this comment

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

LGTM

for tx in pending.drain(..) {
match tx.send(Err(err)) {
Ok(_) => return,
Ok(_) => break,
Copy link
Contributor

Choose a reason for hiding this comment

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

Very good catch!

@baszalmstra baszalmstra merged commit 50df9f1 into prefix-dev:main Jan 9, 2026
35 of 38 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.

2 participants