未验证 提交 fa6eaa74 编写于 作者: Y Yucheng 提交者: GitHub

Update service.py

上级 78c0233a
......@@ -14,8 +14,8 @@ def net_is_used(port, ip='0.0.0.0'):
#print('%s:%d is unused' % (ip, port))
return False
os.system("ps -f | grep mlflow | awk {'print $2'} | xargs kill -9 >/dev/null 2>&1")
os.system("ps -f | grep gunicorn | awk {'print $2'} | xargs kill -9 >/dev/null 2>&1")
os.system("ps -ef | grep ${USER} | grep mlflow | awk {'print $2'} | xargs kill -9 >/dev/null 2>&1")
os.system("ps -ef | grep ${USER} | grep gunicorn | awk {'print $2'} | xargs kill -9 >/dev/null 2>&1")
while True:
if os.path.exists("./mlruns") and not net_is_used(8111):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册