mirror of
https://github.com/clearml/clearml-serving
synced 2025-01-31 02:46:54 +00:00
Improve error handling on missing tritonserver executable
This commit is contained in:
parent
435c537bca
commit
34d435714f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user