We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb999d commit dc7aceeCopy full SHA for dc7acee
1 file changed
distributed/core.py
@@ -680,10 +680,11 @@ def close(self):
680
for i in range(20):
681
# If there are still handlers running at this point, give them a
682
# second to finish gracefully themselves, otherwise...
683
- if any(self._comms.values()):
+ if any(comm for comm in self._comms.values() if comm != "terminate"):
684
yield asyncio.sleep(0.05)
685
else:
686
break
687
+
688
yield self.rpc.close()
689
yield [comm.close() for comm in list(self._comms)] # then forcefully close
690
for cb in self._ongoing_coroutines:
0 commit comments