Skip to content

Commit

Permalink
Fix Readme.md text wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
indrajit96 committed Aug 15, 2024
1 parent 465112b commit a4c913c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,13 +552,17 @@ gRPC guide on [cancellation](https://grpc.io/docs/guides/cancellation/#cancellin

### GRPC 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.
Without this header Triton server will continue streaming in default mode returning error message and status inside `InferenceServerException` object within the callback provided.
Starting from release 24.08, 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. Without this header Triton server
will continue streaming in default mode returning error message and status inside
`InferenceServerException` object within the callback provided.

```python
triton_client = grpcclient.InferenceServerClient(triton_server_url)
Expand Down

0 comments on commit a4c913c

Please sign in to comment.