common
messageflux.iodevices.short_circuit_device_wrapper.common
ShortCircuitDeviceBase
a base logic for short circuit devices
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
short_circuit_fail_count |
int
|
the consecutive number of failures that will trigger a short circuit |
required |
short_circuit_time |
float
|
the time in seconds that the device will be in short circuit state |
required |
consecutive_failures_count
property
returns the current consecutive failures count
ShortCircuitException
Bases: KwargsException
this exception is raised when the device is in short circuit state