mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 12:38:12 +08:00
Removed Cluster.is_idle
It wasn't used and it could be confused with the cluster stat IDLE
This commit is contained in:
@@ -49,7 +49,6 @@ class Cluster(object):
|
||||
self.sentinel = None
|
||||
self.stop_event = None
|
||||
self.start_event = None
|
||||
self.stopped_event = None
|
||||
self.pid = current_process().pid
|
||||
self.host = socket.gethostname()
|
||||
self.list_key = list_key
|
||||
@@ -111,10 +110,6 @@ class Cluster(object):
|
||||
def has_stopped(self):
|
||||
return self.start_event is None and self.stop_event is None and self.sentinel
|
||||
|
||||
@property
|
||||
def is_idle(self):
|
||||
return self.sentinel is None
|
||||
|
||||
|
||||
class Sentinel(object):
|
||||
def __init__(self, stop_event, start_event, list_key=Conf.Q_LIST, timeout=Conf.TIMEOUT, start=True):
|
||||
|
||||
Reference in New Issue
Block a user