Skip to main content

Module suotar_circuit_breakers

Module suotar_circuit_breakers 

Source
Expand description

The last state each worker process reported for its circuit breakers. The worker keeps the live state in memory; this copy is only for the dashboard, which runs in another process.

Structs§

SuotarCircuitBreaker
One worker process’s circuit breaker as that process last reported it, for the dashboard. Stale once the process stops reporting: check updated_at.
SuotarCircuitBreakerReport
What the worker reports for one breaker; SuotarCircuitBreaker without the report time.

Enums§

BreakerTarget
Which phases one circuit breaker pauses.

Functions§

get_all
Every reported breaker, by process and target.
upsert
Replaces the reported state of one process’s breaker. Only the worker process that owns the breaker may call this: any other process holds a breaker of its own, and would overwrite the worker’s.