[chore] log process manager shutdown with more details (#49437)
Signed-off-by: Andy Xie <andy.xning@gmail.com>
Ning Xie committed
Aug 1, 2026 at 02:55 UTC
9a7ae4b80866a322678ece31ca2854d9a174ab8d
1 file changed
+17
-6
vllm/v1/utils.py
+17
-6
@@ -600,14 +600,18 @@ def shutdown(procs: list[BaseProcess], timeout: float | None = None) -> None:
600
timeout = 5.0
601
602
logger.debug(
603
- "[shutdown] Process manager: start process_count=%d timeout=%ss",
603
+ "[shutdown] Process manager: start process_count=%d timeout=%ss names=%s",
604
len(procs),
605
timeout,
606
+ (",").join([proc.name for proc in procs]),
607
)
608
609
# Shutdown the process.
610
for proc in procs:
611
if proc.is_alive():
612
+ logger.info(
613
+ "[shutdown] Process manager: send sigterm to process %s", proc.name
614
+ )
615
proc.terminate()
616
617
# Allow time for remaining procs to terminate.
@@ -619,15 +623,22 @@ def shutdown(procs: list[BaseProcess], timeout: float | None = None) -> None:
623
if proc.is_alive():
624
proc.join(remaining)
625
622
- remaining_pids = [
623
- proc.pid for proc in procs if proc.is_alive() and proc.pid is not None
626
+ remaining_procs = [
627
+ (proc.pid, proc.name)
628
+ for proc in procs
629
+ if proc.is_alive() and proc.pid is not None
630
]
625
- if remaining_pids:
631
+ if remaining_procs:
632
logger.warning(
633
"[shutdown] Process manager: force killing remaining processes count=%d",
628
- len(remaining_pids),
634
+ len(remaining_procs),
635
+ )
636
+ for pid, proc_name in remaining_procs:
637
+ logger.warning(
638
+ "[shutdown] Process manager: force killing remaining process %s pid %d",
639
+ proc_name,
640
+ pid,
641
)
630
- for pid in remaining_pids:
642
kill_process_tree(pid)
643
644
logger.debug_once("[shutdown] Process manager: complete")