minos.common.retries
Classes
Circuit Breaker Mixin class. |
- class CircuitBreakerMixin[source]
-
Circuit Breaker Mixin class.
- __init__(circuit_breaker_error_rate=0.2, circuit_breaker_time=3, circuit_breaker_exceptions=(Exception,), **kwargs)[source]
- property circuit_breaker: aiomisc.circuit_breaker.CircuitBreaker
Get the circuit breaker.
- Returns
A
CircuitBreaker
instance.
- property is_circuit_breaker_passing: bool
Check if circuit breaker is passing.
- Returns
A
bool
instance.
- property is_circuit_breaker_broken: bool
Check if circuit breaker is passing.
- Returns
A
bool
instance.