Improve error handling on missing tritonserver executable

This commit is contained in:
allegroai 2021-05-14 01:30:16 +03:00
parent 435c537bca
commit 34d435714f

View File

@ -114,7 +114,12 @@ class TritonHelper(object):
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: