feat: wire the circuit breaker into the proxy fetch path #90

Merged
benvin merged 2 commits from benvin/wire-circuit-breaker into master 2026-07-02 22:43:23 +10:00

2 Commits

Author SHA1 Message Date
benvin 5b079e1f79 Merge branch 'master' into benvin/wire-circuit-breaker
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
2026-07-02 22:36:32 +10:00
unkinben ad6dfbdc5b feat: wire the circuit breaker into the proxy fetch path
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/build Pipeline failed
The circuit breaker was fully implemented and tested but never called, so
a failing upstream was hit on every request. Engine.Fetch now short-
circuits when the breaker is open (serving stale if available, else 503),
records a failure on each UpstreamError, and resets on success.

Refs #74
2026-07-02 22:33:38 +10:00