mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 13:37:15 +08:00
Ensure that pid passed to kill_process_tree is int for mypy (#17051)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
f7912cba3d
commit
53c0fa1e25
@ -134,8 +134,8 @@ def shutdown(proc: Process, input_path: str, output_path: str):
|
|||||||
proc.terminate()
|
proc.terminate()
|
||||||
proc.join(5)
|
proc.join(5)
|
||||||
|
|
||||||
if proc.is_alive():
|
if proc.is_alive() and (pid := proc.pid) is not None:
|
||||||
kill_process_tree(proc.pid)
|
kill_process_tree(pid)
|
||||||
|
|
||||||
# Remove zmq ipc socket files.
|
# Remove zmq ipc socket files.
|
||||||
ipc_sockets = [output_path, input_path]
|
ipc_sockets = [output_path, input_path]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user