Skip to content

fix(hub): bound coordinator start at a measured 60 seconds - #31

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11874-size-the-coordinator-start-limit-from-measured-cold-starts
Oct 31, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11874-size-the-coordinator-start-limit-from-measured-cold-starts

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-11874.

What changed

  • A project's coordinator may take up to 60 s to start (was 270 s). COORDINATOR_START_TIMEOUT_MS raises it; boot refuses values of 300000 or more so a failed start always reaches the person before the web's 5-minute request ceiling.
  • A start that times out is cancelled rather than left running, and the cached deploy is dropped so the next attempt starts clean.
  • positiveInteger is shared by the hub's integer settings.
  • Documented in .env.hub.example and docs/SELF_HOST.md.

Verified

  • Measured starts: 3.6 s cold on a fresh install, 15 s worst over 115 dev starts.
  • bun run lint, format:check, typecheck, test (70 tests) pass.
  • Tests cover the timeout cancelling the start.

Starts take seconds (3.6 s cold on a fresh install, 15 s worst over 115
dev starts), so the 270 s wait is now 60 s, set by
COORDINATOR_START_TIMEOUT_MS and kept under the web's 5-minute ceiling.
A start that times out is cancelled instead of left running.
@linear-code

linear-code Bot commented Oct 31, 2026

Copy link
Copy Markdown

CL-11874

@corbits-triage

corbits-triage Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Triage will approve, request review.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 1fc7b43 Oct 31, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant