The grpc.py module#
Summary#
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
Trueif the health check succeeds,Falseotherwise.