Repository navigation
fix(engine): a refused resume lets go of the leases it took again - #257
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An interrupted run (regression-catcher, PR 8164) kept the lease
zac-regression-stackfor 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.
combineHoldsrolled back the earlier parts withended(run.end.status). That status wasinterrupted, andleaseHolds.endedkeeps 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
combineHoldstest 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