Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Python execute() to return Triton error code #292

Merged
merged 6 commits into from
Sep 2, 2023
Merged

Conversation

kthui
Copy link
Contributor

@kthui kthui commented Aug 24, 2023

Related PRs:
triton-inference-server/server#6228
#300

Currently, the execute() can return an error if needed, for example:

error = pb_utils.TritonError("error message")

The pb_utils.TritonError() has a new optional parameter code that allows returning a code, for example:

error = pb_utils.TritonError(message="error message", code=pb_utils.ErrorCode.TRITONSERVER_ERROR_INVALID_ARG)

@kthui kthui requested a review from Tabrizian August 29, 2023 23:24
@kthui kthui requested a review from Tabrizian September 1, 2023 01:32
@kthui kthui merged commit 66f5e1e into main Sep 2, 2023
@kthui kthui deleted the jacky-err-code branch September 2, 2023 00:46
@kthui kthui mentioned this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants