Skip to content

Commit

Permalink
Remove redundant gen.coroutine hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Oct 4, 2023
1 parent 336c6ed commit 32f5677
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions distributed/deploy/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ async def _correct_state_internal(self) -> None:
# *other* workers have finished initialising, so that we can have a
# proper teardown.
await asyncio.gather(*worker_futs)

Check warning on line 390 in distributed/deploy/spec.py

View check run for this annotation

Codecov / codecov/patch

distributed/deploy/spec.py#L390

Added line #L390 was not covered by tests
for w in workers:
await w # for tornado gen.coroutine support

def _update_worker_status(self, op, msg):
if op == "remove":
Expand Down Expand Up @@ -686,8 +684,6 @@ async def run_spec(spec: dict[str, Any], *args: Any) -> dict[str, Worker | Nanny

if workers:
await asyncio.gather(*workers.values())
for w in workers.values():
await w # for tornado gen.coroutine support
return workers


Expand Down

0 comments on commit 32f5677

Please sign in to comment.