Skip to content

Commit

Permalink
Raises error for http health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnanPrash committed Nov 30, 2024
1 parent 76e15f2 commit 82cf0cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python/library/tritonclient/http/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ def is_server_live(self, headers=None, query_params=None):
request_uri=request_uri, headers=headers, query_params=query_params
)

_raise_if_error(response)

return response.status_code == 200

def is_server_ready(self, headers=None, query_params=None):
Expand Down Expand Up @@ -396,6 +398,8 @@ def is_server_ready(self, headers=None, query_params=None):
request_uri=request_uri, headers=headers, query_params=query_params
)

_raise_if_error(response)

return response.status_code == 200

def is_model_ready(
Expand Down

0 comments on commit 82cf0cc

Please sign in to comment.