Skip to content

Commit

Permalink
Improve error handling on missing tritonserver executable
Browse files Browse the repository at this point in the history
  • Loading branch information
allegroai committed May 13, 2021
1 parent 435c537 commit 34d4357
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clearml_serving/triton_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ def maintenance_daemon(
cmd.append('--{}={}'.format(k, v))

print('Starting server: {}'.format(cmd))
proc = subprocess.Popen(cmd)
try:
proc = subprocess.Popen(cmd)
except FileNotFoundError:
raise ValueError(
"Triton Server Engine (tritonserver) could not be found!\n"
"Verify you running inside the `nvcr.io/nvidia/tritonserver` docker container")
base_freq = min(update_frequency_sec, metric_frequency_sec)
metric_tic = update_tic = time()
while True:
Expand Down

0 comments on commit 34d4357

Please sign in to comment.