openfl.transport.grpc.aggregator_client.ConstantBackoff
- class openfl.transport.grpc.aggregator_client.ConstantBackoff(reconnect_interval, logger, uri)
Bases:
objectConstant Backoff policy.
This class implements a backoff policy that waits for a constant amount of time between retries.
- Class Attributes:
reconnect_interval (int) – The interval between connection attempts.
logger (Logger) – The logger to use for reporting connection attempts.
uri (str) – The URI to connect to.
Methods
Sleep for specified interval.
- sleep()
Sleep for specified interval.