proxywhirl.circuit_breaker.base¶
Base circuit breaker implementation with shared state machine logic.
This module provides the core state machine logic shared between sync (CircuitBreaker) and async (AsyncCircuitBreaker) implementations.
Classes¶
Base circuit breaker with shared state machine logic. |
|
Circuit breaker states. |
Module Contents¶
- class proxywhirl.circuit_breaker.base.CircuitBreakerBase(/, **data)[source]¶
Bases:
pydantic.BaseModelBase circuit breaker with shared state machine logic.
This class contains all the state management logic shared between sync and async implementations. Subclasses provide the locking mechanism.
- Parameters:
data (Any)
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.