Unverified Commit ed5272cf authored by Nick Hill's avatar Nick Hill Committed by GitHub
Browse files

[BugFix] Avoid secondary missing `MultiprocExecutor.workers` error (#17811)


Signed-off-by: default avatarNick Hill <nhill@redhat.com>
parent c20ef40f
...@@ -258,9 +258,10 @@ class MultiprocExecutor(Executor): ...@@ -258,9 +258,10 @@ class MultiprocExecutor(Executor):
self.io_thread_pool.shutdown(wait=False, cancel_futures=True) self.io_thread_pool.shutdown(wait=False, cancel_futures=True)
self.io_thread_pool = None self.io_thread_pool = None
for w in self.workers: if workers := getattr(self, 'workers', None):
w.worker_response_mq = None for w in workers:
self._ensure_worker_termination([w.proc for w in self.workers]) w.worker_response_mq = None
self._ensure_worker_termination([w.proc for w in workers])
self.rpc_broadcast_mq = None self.rpc_broadcast_mq = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment