Add a 5-minute circuit breaker for open data 503 responses #38
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
logiciels/tricoteuses-assemblee!38
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/open-data-503-circuit-breaker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
During the 2026-10-05/06 open data outage,
data.assemblee-nationale.franswered503 Backend fetch failed(Varnish could not reach its origin). Our tooling then added avoidable load to the struggling front end:Change
src/open_data/artifacts.tsnow keeps a process-wide circuit breaker shared by artifact probes and downloads:circuit-breaker-openevent;circuitBreakerCooldownMsoption (0 disables).Net effect during an outage: at most one probe burst and one download attempt per 5 minutes per process, instead of bursts every 30–60 s.
Tests
The existing retry-budget test now disables the breaker explicitly (
circuitBreakerCooldownMs: 0).