Skip to content

api: CreateBranch waits on 429 capacity_busy - #2

Merged
alexshapalov merged 4 commits into
mainfrom
feat/create-capacity-retry
Nov 16, 2026
Merged

alexshapalov merged 4 commits into
mainfrom
feat/create-capacity-retry

Conversation

@alexshapalov

Copy link
Copy Markdown
Contributor

Draft for review — do not merge. CreateBranch honours Retry-After on 429 capacity_busy instead of failing; subcommand --help no longer needs a project.

🤖 Generated with Claude Code

alexshapalov and others added 4 commits October 22, 2026 09:34
…s the lookup when the flag tail asks for usage)
The server's admission control (PGRUN_ADMISSION_CONTROL, 2026-11-14) answers 429 capacity_busy
with retry_after_s when a host is momentarily full; nothing is created. CreateBranch now sends
the create again after the hint (clamped 2-60 s), within CapacityWait (default 2 minutes); other
429s and errors are returned as before. The CLI prints one line per wait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…golangci-lint, govulncheck

pgrun-cli had no CI. Pinned action SHAs and tool versions (as pgbot). .golangci.yml keeps the
default linters and lists the accepted CLI patterns (terminal writes, best-effort cleanup; test
fixture writes) instead of changing code; 0 issues on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alexshapalov
alexshapalov marked this pull request as ready for review November 16, 2026 03:20
@alexshapalov
alexshapalov merged commit 4eecf54 into main Nov 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant