diff --git a/distributed/scheduler.py b/distributed/scheduler.py index e6e6adf7ced..cba399318cc 100644 --- a/distributed/scheduler.py +++ b/distributed/scheduler.py @@ -276,10 +276,10 @@ def __init__( self.extra = extra or {} def __hash__(self): - return hash((self.name, self.host)) + return hash(self.address) def __eq__(self, other): - return type(self) == type(other) and hash(self) == hash(other) + return type(self) == type(other) and self.address == other.address @property def host(self):