Skip to content

Commit 9204699

Browse files
NickCaoclaude
andauthored
[UX] Log worker exit code when process dies unexpectedly (vllm-project#38641)
Signed-off-by: Nick Cao <ncao@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8b91cd5 commit 9204699

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

vllm/v1/executor/multiproc_executor.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,12 @@ def monitor_workers():
280280
logger.debug("MultiprocWorkerMonitor: shutdown already initiated")
281281
return
282282
_self.is_failed = True
283-
proc_name = next(h.proc.name for h in workers if h.proc.sentinel == died[0])
283+
proc = next(h.proc for h in workers if h.proc.sentinel == died[0])
284284
logger.error(
285-
"Worker proc %s died unexpectedly, shutting down executor.", proc_name
285+
"Worker proc %s died unexpectedly (exit code: %s), "
286+
"shutting down executor.",
287+
proc.name,
288+
proc.exitcode,
286289
)
287290
_self.shutdown()
288291
callback = _self.failure_callback

0 commit comments

Comments
 (0)