Skip to content

feat(vercel): expose Vercel circuit breaker state in deployment health endpoint#858

Merged
temma02 merged 1 commit into
StellerCraft:mainfrom
Nexha-dev:feat/vercel-client-circuit-breaker
Jun 27, 2026
Merged

feat(vercel): expose Vercel circuit breaker state in deployment health endpoint#858
temma02 merged 1 commit into
StellerCraft:mainfrom
Nexha-dev:feat/vercel-client-circuit-breaker

Conversation

@Nexha-dev

Copy link
Copy Markdown
Contributor

Closes #766

Summary

The Vercel API client is already wrapped with a circuit breaker (@/lib/api/circuit-breaker, fast-failing during outages with open/half-open/close transitions). This PR completes the issue by surfacing the circuit state to operators via the deployment health endpoint.

Changes

  • Expose circuitState (CLOSED / OPEN / HALF_OPEN) from the Vercel service breaker in the GET /api/deployments/[id]/health response.

Notes

  • Circuit breaker behaviour (open after 5 consecutive failures, fast-fail while open, single half-open probe after the reset timeout, close on probe success) and its transition tests already live in circuit-breaker.test.ts / vercel-circuit-breaker.test.ts.

🤖 Generated with Claude Code

@temma02 temma02 merged commit d38072b into StellerCraft:main Jun 27, 2026
0 of 7 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.

Design Vercel API Client with Circuit Breaker Pattern for Deployment Failure Isolation

2 participants