未验证 提交 990ec9f7 编写于 作者: X xiaoting 提交者: GitHub

update serving stop (#5535)

上级 6e05bb80
......@@ -70,7 +70,7 @@ function func_serving(){
last_status=${PIPESTATUS[0]}
status_check $last_status "${pipeline_cmd}" "${status_log}" "${model_name}"
eval "cat ${_save_log_path}"
ps ux | grep -E 'web_service|pipeline' | awk '{print $2}' | xargs kill -s 9
ps ux | grep -E 'web_service' | awk '{print $2}' | xargs kill -s 9
else
_save_log_path="../../log/${model_name}/${MODE}/serving_infer_python_gpu_batchsize_1.log"
web_service_cmd="${python} ${web_service_py} ${web_use_gpu_key}=${use_gpu} &"
......@@ -84,7 +84,7 @@ function func_serving(){
last_status=${PIPESTATUS[0]}
status_check $last_status "${pipeline_cmd}" "${status_log}" "${model_name}"
eval "cat ${_save_log_path}"
ps ux | grep -E 'web_service|pipeline' | awk '{print $2}' | xargs kill -s 9
ps ux | grep -E 'web_service' | awk '{print $2}' | xargs kill -s 9
fi
done
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册