From 02296f420d38fdc5a8d9345679ece47f31c85ad2 Mon Sep 17 00:00:00 2001 From: "Li, Jiang" Date: Sat, 1 Mar 2025 14:31:01 +0800 Subject: [PATCH] [Bugfix][V1][Minor] Fix shutting_down flag checking in V1 MultiprocExecutor (#14053) --- vllm/v1/executor/multiproc_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/v1/executor/multiproc_executor.py b/vllm/v1/executor/multiproc_executor.py index d4582122fa6d4..25b5c1c1c2fc3 100644 --- a/vllm/v1/executor/multiproc_executor.py +++ b/vllm/v1/executor/multiproc_executor.py @@ -170,7 +170,7 @@ class MultiprocExecutor(Executor): def shutdown(self): """Properly shut down the executor and its workers""" - if getattr(self, 'shutting_down', False): + if not getattr(self, 'shutting_down', False): self.shutting_down = True for w in self.workers: w.worker_response_mq = None