fix(miner): keep in-progress portfolio rows off re-enqueue demotion#2884
Conversation
Skip the enqueue upsert update when a portfolio item is already in_progress so duplicate enqueue calls cannot reset an active claim back to queued. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2884 +/- ##
=======================================
Coverage 96.03% 96.03%
=======================================
Files 259 259
Lines 28393 28393
Branches 10326 10326
=======================================
Hits 27266 27266
Misses 491 491
Partials 636 636 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-04 03:57:07 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
in_progressitem back toqueued.Problem
The upsert path always reset conflicting rows to
queued, even when the item had already been claimed viadequeueNext. Re-enqueueing the same identifier could silently undo an in-progress claim.Validation
Safety