record
Method
This is a method of the RestartLoopGuard class in the protocols module.Record a restart at
now and return whether the breaker tripped.
Signature
Parameters
float
required
A monotonic timestamp for this restart event.
Returns
bool
True when at least max_restarts restarts have occurred
within the trailing window_seconds (breaker tripped);
False otherwise.Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 4437
