We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9aca36 commit 80e5be6Copy full SHA for 80e5be6
rtp_llm/test/utils/maga_server_manager.py
@@ -197,7 +197,15 @@ def stop_server(self):
197
for child in alive:
198
child.kill() # 强制终止未退出的进程
199
parent.terminate()
200
- parent.wait()
+ # 添加超时机制,避免永久阻塞
201
+ try:
202
+ parent.wait(timeout=10)
203
+ except psutil.TimeoutExpired:
204
+ logging.warning(
205
+ "Parent process did not exit gracefully, force killing"
206
+ )
207
+ parent.kill()
208
+ parent.wait(timeout=5)
209
self._server_process = None
210
except Exception as e:
211
logging.warning("failed to get process with: " + str(e))
0 commit comments