FORGE-79: let the executor pool start up to 12 containers per claim window #722

Merged
gmackie merged 1 commit from FORGE-79-pool-inflight-12 into main 2026-10-12 06:04:27 +00:00
Owner

Issue: https://tasks.gmac.io/gmacko/issue/FORGE-79

One-line config: POOL_MAX_IN_FLIGHT 4 → 12 (apps/ci-executor/wrangler.jsonc). The deployed Worker already runs this (version a0917ad2); this brings main in line.

Why

The cap was lowered to 4 during the 2026-10-12 incident, when containers launched for concurrency-blocked jobs idled up to 40 min and filled max_instances. Since #714 (merged as 34fd414b), the entrypoint exits a container that claims nothing within 180s, so a high cap no longer leaves idle containers holding instances. A cap of 4 did throttle real work: in #718's run the cloudflare jobs waited 151s for a container (previously 0–17s).

Also measured in #718's run (merged as c37a866f)

The post-job tail on cloudflare jobs dropped from ~95s to 1–4s, and unit-web runtime from 332s to 146s.

🤖 Generated with Claude Code

Issue: https://tasks.gmac.io/gmacko/issue/FORGE-79 One-line config: `POOL_MAX_IN_FLIGHT` 4 → 12 (`apps/ci-executor/wrangler.jsonc`). **The deployed Worker already runs this** (version a0917ad2); this brings main in line. ## Why The cap was lowered to 4 during the 2026-10-12 incident, when containers launched for concurrency-blocked jobs idled up to 40 min and filled max_instances. Since #714 (merged as 34fd414b), the entrypoint exits a container that claims nothing within 180s, so a high cap no longer leaves idle containers holding instances. A cap of 4 did throttle real work: in #718's run the cloudflare jobs **waited 151s** for a container (previously 0–17s). ## Also measured in #718's run (merged as c37a866f) The post-job tail on cloudflare jobs dropped from ~95s to **1–4s**, and unit-web runtime from 332s to **146s**. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perf(ci): let the executor pool start up to 12 containers per claim window (FORGE-79)
All checks were successful
CI / gitleaks (pull_request) Successful in 19s
CF executor smoke / smoke (pull_request) Successful in 21s
CI / go (pull_request) Successful in 1m0s
CI / storybook (pull_request) Successful in 1m41s
CI / web-build (pull_request) Successful in 2m15s
CI / database (pull_request) Successful in 2m30s
CI / unit-api (pull_request) Successful in 2m42s
CI / unit-web (pull_request) Successful in 3m52s
CI / checks (pull_request) Successful in 4m38s
CI / ci (pull_request) Successful in 1m0s
399a47298f
The pool's in-flight cap was cut to 4 during the 2026-10-12 incident,
when containers launched for concurrency-blocked jobs idled up to 40 min.
The entrypoint now exits a container that claims nothing within 180s, so
the cap no longer protects capacity, but it did throttle real work: PR
#718's cloudflare jobs waited 151s for a container. Raise it to 12. The
deployed Worker already runs this (version a0917ad2).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.