Skip to content

Commit

Permalink
Flip client cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Nov 25, 2020
1 parent c5acd1c commit 3b8741f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2590,13 +2590,13 @@ def report(self, msg, ts=None, client=None):
if ts is None:
# Notify all clients
client_keys = list(self.client_comms)
elif client is not None:
elif client is None:
# Notify clients interested in key
client_keys = [c.client_key for c in ts.who_wants]
else:
# Notify clients interested in key (including `client`)
client_keys = [c.client_key for c in ts.who_wants if c.client_key != client]
client_keys.append(client)
else:
# Notify clients interested in key
client_keys = [c.client_key for c in ts.who_wants]

for k in client_keys:
try:
Expand Down

0 comments on commit 3b8741f

Please sign in to comment.