Пример #1
0
 def stat(self):
     if self.sentinel:
         return Stat.get(self.pid)
     return Status(self.pid)
Пример #2
0
 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)