←
TECH DEBT TRIBUNAL
Missing Circuit Breaker on Downstream Service
⏱ 00:00
Senior · ~35 min
Explorer
Briefing
📂 src/reliability
📄
CircuitBreaker.ts
📄
checkoutService.ts
CircuitBreaker.ts
checkoutService.ts
Loading...
Live Analysis
Cyclomatic Complexity
LIVE
0
/ 4 target
Complexity is within acceptable limits.
Objectives
PASS
4
/ 4
✓ Implement CircuitBreaker with CLOSED/OPEN/HALF_OPEN states
✓ Throw CircuitOpenError when circuit is OPEN
✓ Implement cooldown and HALF_OPEN probe logic
✓ Use circuit breaker in checkoutService.ts with graceful fallback
Acceptance Tests
Jest
—
/ 24
Submit to run acceptance suite.
▶ Submit Refactor