The client.py module#

Summary#

GrpcClient

Wraps the gRPC connection for the Geometry service.

wait_until_healthy

Wait until a channel is healthy before returning.

Description#

Module providing a wrapped abstraction of the gRPC stubs.

Module detail#

client.wait_until_healthy(channel: grpc.Channel, timeout: float)#

Wait until a channel is healthy before returning.

Parameters:
channelChannel

Channel that must be established and healthy.

timeoutfloat

Timeout in seconds. An attempt is made every 100 milliseconds until the timeout is exceeded.

Raises:
TimeoutError

Raised when the total elapsed time exceeds the value for the timeout parameter.