note_restart
Method
This is a method of the FleetSupervisionPolicy class in the protocols module.Record a fleet restart at
now and return whether the breaker is tripped.
Signature
Parameters
float
required
A monotonic timestamp for this restart event.
Returns
bool
True when the aggregate restart rate has reached
fleet_restarts_per_hour within the trailing hour (or the breaker
is still within its cooldown); False otherwise.Uses
tripped
Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 4537
