Skip to content

fix(engine): a refused resume lets go of the leases it took again - #257

Merged
xiduzo merged 1 commit into
mainfrom
fix/lease-resume-rollback
Dec 1, 2026
Merged

xiduzo merged 1 commit into
mainfrom
fix/lease-resume-rollback

Conversation

@xiduzo

@xiduzo xiduzo commented Dec 1, 2026

Copy link
Copy Markdown
Owner

An interrupted run (regression-catcher, PR 8164) kept the lease zac-regression-stack for two days after it ended. Every later run of that flow waited on it.

Cause. On an automatic resume, the lease part took the lease again. The service part then refused, because the services did not start. combineHolds rolled back the earlier parts with ended(run.end.status). That status was interrupted, and leaseHolds.ended keeps leases for an interrupted run. The keeper still tracked the lease and renewed it every minute.

Fix. The rollback calls notContinuing, which releases what the resume took. For a run that ended in any other way, this does the same as before.

Test. The combineHolds test now uses an interrupted run. It fails without the fix.

After merge, redeploy the Host. The redeploy also clears the stuck renewal.

🤖 Generated with Claude Code

When the services of an interrupted run did not start again, the rollback
called ended("interrupted"), which keeps leases for a later resume. The lease
the resume had just taken stayed in the keeper and was renewed every minute,
so other runs waited on an ended run for days. The rollback now calls
notContinuing, which releases what the resume took.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
@xiduzo
xiduzo merged commit b908b70 into main Dec 1, 2026
24 checks passed
@xiduzo
xiduzo deleted the fix/lease-resume-rollback branch December 1, 2026 19:42
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