MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / get_server_pid

Function get_server_pid

tests/ce/deploy/deploy.py:113–119  ·  view source on GitHub ↗

获取服务进程ID PORT

()

Source from the content-addressed store, hash-verified

111
112
113def get_server_pid():
114 """获取服务进程ID PORT"""
115 if os.path.exists(PID_FILE):
116 with open(PID_FILE, "r") as f:
117 data = yaml.safe_load(f)
118 return data
119 return None
120
121
122def is_server_running():

Callers 2

is_server_runningFunction · 0.85
stop_serverFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected