Skip to content

Index Generator#275

Open
adRn-s wants to merge 12 commits intodevelopfrom
ixgen
Open

Index Generator#275
adRn-s wants to merge 12 commits intodevelopfrom
ixgen

Conversation

@adRn-s
Copy link
Copy Markdown
Collaborator

@adRn-s adRn-s commented Apr 8, 2026

No description provided.

adRn-s and others added 12 commits April 8, 2026 13:26
Co-authored-by: Saurabh Dome <domesaurabh@gmail.com>
What I changed
Updated views.py in FlowcellViewSet.destroy_flowcell.
Fix: instead of decrementing pool.loaded per-lane using potentially stale pool instances, I now:
count unloads per pool across all lanes being removed,
apply a single decrement per affected pool (loaded = max(0, loaded - unload_count)),
then run the existing status rollback logic.
Why this failed before
When two lanes belonged to the same pool, each lane held its own in-memory pool object with the same initial loaded value.
That caused both saves to write loaded - 1 from the same starting point, leaving loaded == 1 instead of 0.
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