The grpc.py module#

Summary#

check_grpc_health

Check that a gRPC server is responding to health check requests.

Description#

Helpers for interacting with gRPC servers.

Module detail#

grpc.check_grpc_health(channel: grpc.Channel, timeout: float | None = None) bool#

Check that a gRPC server is responding to health check requests.

Parameters#

channel :

Channel to the gRPC server.

timeout :

Timeout in seconds for the gRPC health check request.

Returns#

bool

True if the health check succeeds, False otherwise.