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 fe94bd8 commit e806f90Copy full SHA for e806f90
distributed/deploy/spec.py
@@ -469,14 +469,15 @@ async def _close(self):
469
await super()._close()
470
471
async def __aenter__(self):
472
+ await self
473
try:
- await self
474
await self._correct_state()
475
- assert self.status == Status.running
476
- return self
477
except Exception:
+ # One or more Servers failed to start. Close the healthy workers and reraise
478
await self.close()
479
raise
+ assert self.status == Status.running
480
+ return self
481
482
def _threads_per_worker(self) -> int:
483
"""Return the number of threads per worker for new workers"""
0 commit comments