From 920469974afd2adca8382bab372a018398d18291 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 7 Jul 2026 08:36:29 -0400 Subject: [PATCH] [UX] Log worker exit code when process dies unexpectedly (#38641) Signed-off-by: Nick Cao Co-authored-by: Claude --- vllm/v1/executor/multiproc_executor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vllm/v1/executor/multiproc_executor.py b/vllm/v1/executor/multiproc_executor.py index 0937fad8f1..7633ca89cd 100644 --- a/vllm/v1/executor/multiproc_executor.py +++ b/vllm/v1/executor/multiproc_executor.py @@ -280,9 +280,12 @@ class MultiprocExecutor(Executor): logger.debug("MultiprocWorkerMonitor: shutdown already initiated") return _self.is_failed = True - proc_name = next(h.proc.name for h in workers if h.proc.sentinel == died[0]) + proc = next(h.proc for h in workers if h.proc.sentinel == died[0]) logger.error( - "Worker proc %s died unexpectedly, shutting down executor.", proc_name + "Worker proc %s died unexpectedly (exit code: %s), " + "shutting down executor.", + proc.name, + proc.exitcode, ) _self.shutdown() callback = _self.failure_callback