note_fleet_state
Method
This is a method of the FleetSupervisionPolicy class in the protocols module.Trip the breaker when too large a fraction of the fleet is failing. A systemic fault often shows up as many channels simultaneously in a failing/parked state rather than as a raw restart rate. When at least
failing_channel_fraction of the fleet is failing, trip and start the
cooldown.
Signature
Parameters
int
required
Number of channels currently failing/parked.
int
required
Total number of supervised channels.
float
required
A monotonic timestamp for this evaluation.
Returns
bool
True when the breaker is tripped (now or still cooling down).Uses
tripped
Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 4561
