Skip to content

Commit

Permalink
Fix _update_scheduler_info hanging failed tests (#7225)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 authored Nov 1, 2022
1 parent a573da0 commit 5a14053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ async def _ensure_connected(self, timeout=None):
logger.debug("Started scheduling coroutines. Synchronized")

async def _update_scheduler_info(self):
if self.status not in ("running", "connecting"):
if self.status not in ("running", "connecting") or self.scheduler is None:
return
try:
self._scheduler_identity = SchedulerInfo(await self.scheduler.identity())
Expand Down

0 comments on commit 5a14053

Please sign in to comment.