Repository navigation
app/: a killed run frees its build within 2 minutes (processing lock renewed while a run works; builds.process retries) - #124
Open
ndbroadbent wants to merge 1 commit into
Open
ndbroadbent wants to merge 1 commit into
ndbroadbent wants to merge 1 commit into
Conversation
…ock is renewed while a run works; builds.process gets 3 tries A deploy killed a run holding its build's 20-minute processing lock, and its one try was spent, so the build sat in processing until the lock expired. The lock is now held for 2 minutes and renewed every 30 s; retries come after 3 and 5 minutes.
ndbroadbent
force-pushed
the
app-processing-lock-heartbeat
branch
from
December 3, 2026 07:55
6db8817 to
f35b485
Compare
This branch has not been deployed
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.
On production, a deploy (ba6ede4) killed a
builds.processrun while it held its build's processing lock. That build, docspring/visualci #29 (PR #115's VisualCI build), stayed in processing for 20 minutes:builds.processallowed one try ("attempted more than its 1triesallow");Changes
processing::exclusiveholds the build for 2 minutes and renews the hold every 30 s while the run works. A live run keeps the build for as long as it needs; a killed one stops renewing, so its build is free within 2 minutes. If renewing fails or the hold lapses, that's logged as a warning.builds.processgets 3 tries, with retries after 3 and then 5 minutes. The first retry waits out a killed run's 2-minute hold. A run that fails part-way still marks the build failed itself, so only a run that was cut off (killed, or timed out) comes back. The sweep stays as a backstop.exclusive_withtakes the hold's timing, so tests can use short ones.docs/design-storage.mddescribes the renewed lock.Tests (
app/tests/processing_lock.rs, with a 2 s hold renewed every 0.4 s):Checks: on agents-build-1,
cargo fmt --check,cargo clippy --locked --all-targets -- -D warningsand the fullcargo test --lockedpass.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.