use both pid and cluster_id

This commit is contained in:
Jason McVetta
2020-02-12 18:23:47 +07:00
parent d22c916bfc
commit 14a602ee8b
4 changed files with 13 additions and 10 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ class Cluster(object):
@property
def stat(self):
if self.sentinel:
return Stat.get(self.pid)
return Status(self.pid)
return Stat.get(pid=self.pid, cluster_id=self.cluster_id)
return Status(pid=self.pid, cluster_id=self.cluster_id)
@property
def is_starting(self):