Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrist committed Nov 15, 2019
1 parent 92441f0 commit 86a66f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2006,9 +2006,8 @@ def cancel_key(self, key, client, retries=5, force=False):
return
if ts is None or not ts.who_wants: # no key yet, lets try again in a moment
if retries:
self.loop.add_future(
asyncio.sleep(0.2),
lambda _: self.cancel_key(key, client, retries - 1),
self.loop.call_later(
0.2, lambda _: self.cancel_key(key, client, retries - 1)
)
return
if force or ts.who_wants == {cs}: # no one else wants this key
Expand Down

0 comments on commit 86a66f9

Please sign in to comment.