def stat(self): if self.sentinel: return Stat.get(self.pid) return Status(self.pid)
def stat(self): if self.sentinel: return Stat.get(pid=self.pid, cluster_id=self.cluster_id) return Status(pid=self.pid, cluster_id=self.cluster_id)