Repository navigation
Conversation
) Three paths treated any error, including a pool timeout or a dropped connection, as permanent. - Claim: a storage error while building the execution context now hands the execution back to the queue (new `Store::release_claimed_execution`, only for the claiming worker's still-dispatched row) instead of failing it as `invalid_config`. `ApiError` carries a non-serialized `transient` flag, set from the new `StoreError::is_transient` (pool timeout/closed, I/O, TLS, protocol, SQLSTATE 08/40/53/57P). Subagent lookups map only NotFound to "no longer exists". - Runtime tick: only a missing agent halts a 24/7 runtime; other lookup errors, an unreadable last execution and a transient access check are retried with backoff. Bookkeeping writes that were dropped with `let _` are logged at warn. - `GET /worker/env` (and team env mappings in the context) answer with an error instead of a shorter list: storage errors pass through so the worker retries, and a mapping whose connection, credential or secret is gone is a 409 naming the variable, so the run fails instead of starting without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #436.
Summary
Three paths treated any error, including a pool timeout or a dropped
connection, as permanent.
execution back to the queue (new
Store::release_claimed_execution, onlyfor the claiming worker's still-dispatched row) instead of failing it as
invalid_config.ApiErrorcarries a non-serializedtransientflag, setfrom the new
StoreError::is_transient(pool timeout/closed, I/O, TLS,protocol, SQLSTATE 08/40/53/57P). Subagent lookups map only NotFound to
"no longer exists".
errors, an unreadable last execution and a transient access check are
retried with backoff. Bookkeeping writes that were dropped with
let _arelogged at warn.
GET /worker/env(and team env mappings in the context) answer with anerror instead of a shorter list: storage errors pass through so the worker
retries, and a mapping whose connection, credential or secret is gone is a
409 naming the variable, so the run fails instead of starting without it.
Testing
cargo fmt --check,clippy --workspace --all-targets -D warnings: cleancargo test --workspacewith a database: passed;dispatcher::tests::team_lock_is_released_when_the_holder_panicsfailed once in one run and passed 3/3 alone and in the next full run (flaky, unrelated)StoreError::is_transient(3),ApiErrortransient flag (2), storea_released_claim_is_queued_and_claimable_again, APIworker_env_refuses_a_mapping_it_cannot_resolve(409 naming the variable, no value leak)team_env_mappings_are_checked_for_the_run_principalnow creates the secret it maps (it relied on a missing secret being skipped)pnpm docs:check: passedThe claim and runtime-tick paths are not exercised against a failing database; the pieces (classification, release, flag) are tested.
/worker/envcan now return 409, which the OpenAPI document does not list yet. The team-queue claim path may have the same pattern and was not changed.🤖 Generated with Claude Code