mirror of
https://github.com/clearml/clearml-serving
synced 2025-02-07 05:18:12 +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))
|
cmd.append('--{}={}'.format(k, v))
|
||||||
|
|
||||||
print('Starting server: {}'.format(cmd))
|
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)
|
base_freq = min(update_frequency_sec, metric_frequency_sec)
|
||||||
metric_tic = update_tic = time()
|
metric_tic = update_tic = time()
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user