Description
CircuitBreaker transitions directly from open to closed after a reset timeout, without a half-open probe phase. If the downstream service is still degraded, the circuit immediately re-opens after a flood of requests.
Acceptance Criteria
Context
- Target file:
src/resilience/CircuitBreaker.ts
- Probes beyond
halfOpenProbeCount are rejected with a CircuitOpenError in half-open state
Description
CircuitBreakertransitions directly from open to closed after a reset timeout, without a half-open probe phase. If the downstream service is still degraded, the circuit immediately re-opens after a flood of requests.Acceptance Criteria
halfOpenProbeCount(default 1)halfOpenProbeCountrequests are allowed throughContext
src/resilience/CircuitBreaker.tshalfOpenProbeCountare rejected with aCircuitOpenErrorin half-open state