From b6a0918db6d5f23a65240333541c77d8fa185794 Mon Sep 17 00:00:00 2001 From: Indrajit Bhosale Date: Wed, 14 Aug 2024 11:53:03 -0700 Subject: [PATCH] Docs updated for GRPC Error codes --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2f89a2578..338864805 100644 --- a/README.md +++ b/README.md @@ -585,11 +585,14 @@ server side. If writing your own gRPC clients in the language of choice consult gRPC guide on [cancellation](https://grpc.io/docs/guides/cancellation/#cancelling-an-rpc-call-on-the-client-side). -### GRPC Error Status Codes +### GRPC Status Codes -Starting from release 24.09, the Triton Python gRPC client introduces support for gRPC error codes in streaming mode, enhancing error reporting capabilities. When this feature is enabled, the Triton server will return standard gRPC error codes and subsequently close the stream after delivering an error -gRPC guide on [status-codes](https://grpc.io/docs/guides/status-codes/) +Starting from release 24.09, Triton server introduces support for gRPC error codes in streaming mode for all clients enhancing error reporting capabilities. When this feature is enabled, the Triton server will return standard gRPC error codes and subsequently close the stream after delivering the error. This feature is optional can be enabled by adding header with `triton_grpc_error` key and `true` as value. +See [grpc error codes](https://github.com/triton-inference-server/server/tree/main#GRPC-Status-Codes) +in the server to learn about how this is handled on the server side. +See gRPC guide on [status-codes](https://grpc.io/docs/guides/status-codes/) for more details. +Below is a Python snippet to enable the feature. ```python triton_client = grpcclient.InferenceServerClient(triton_server_url)