gRPC helpers#

Helpers for interacting with gRPC servers.

ansys.tools.local_product_launcher.helpers.grpc.check_grpc_health(channel, timeout=None)#

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

Parameters:
  • channel (Channel) – Channel to the gRPC server.

  • timeout (Optional[float], default: None) – Timeout in seconds for the gRPC health check request.

Return type:

bool

Returns:

True if the health check succeeds, False otherwise.