Unverified Commit 02296f42 authored by Li, Jiang's avatar Li, Jiang Committed by GitHub
Browse files

[Bugfix][V1][Minor] Fix shutting_down flag checking in V1 MultiprocExecutor (#14053)

parent 6a92ff93
......@@ -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
......
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