mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 14:53:52 +08:00
[BugFix] Avoid secondary missing MultiprocExecutor.workers
error (#17811)
Signed-off-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
@ -258,9 +258,10 @@ class MultiprocExecutor(Executor):
|
||||
self.io_thread_pool.shutdown(wait=False, cancel_futures=True)
|
||||
self.io_thread_pool = None
|
||||
|
||||
for w in self.workers:
|
||||
w.worker_response_mq = None
|
||||
self._ensure_worker_termination([w.proc for w in self.workers])
|
||||
if workers := getattr(self, 'workers', None):
|
||||
for w in workers:
|
||||
w.worker_response_mq = None
|
||||
self._ensure_worker_termination([w.proc for w in workers])
|
||||
|
||||
self.rpc_broadcast_mq = None
|
||||
|
||||
|
Reference in New Issue
Block a user