DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration Class

Dapr Component Resiliency Policy Circuit Breaker Policy Configuration.

Constructor

DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration(*args: Any, **kwargs: Any)

Variables

Name Description
consecutive_errors
int

The number of consecutive errors before the circuit is opened.

timeout_in_seconds
int

The interval in seconds until a retry attempt is made after the circuit is opened.

interval_in_seconds
int

The optional interval in seconds after which the error count resets to 0. An interval of 0 will never reset. If not specified, the timeoutInSeconds value will be used.

Attributes

consecutive_errors

The number of consecutive errors before the circuit is opened.

consecutive_errors: int | None

interval_in_seconds

The optional interval in seconds after which the error count resets to 0. An interval of 0 will never reset. If not specified, the timeoutInSeconds value will be used.

interval_in_seconds: int | None

timeout_in_seconds

The interval in seconds until a retry attempt is made after the circuit is opened.

timeout_in_seconds: int | None