mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 08:18:11 +08:00
use both pid and cluster_id
This commit is contained in:
+2
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user