mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 00:08:11 +08:00
#40 qsize not implemented
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ class Sentinel(object):
|
||||
if not self.start_event.is_set() and not self.stop_event.is_set():
|
||||
return Conf.STARTING
|
||||
elif self.start_event.is_set() and not self.stop_event.is_set():
|
||||
if self.result_queue.qsize() == 0 and self.task_queue.qsize() == 0:
|
||||
if Conf.QSIZE and self.result_queue.qsize() == 0 and self.task_queue.qsize() == 0:
|
||||
return Conf.IDLE
|
||||
return Conf.WORKING
|
||||
elif self.stop_event.is_set() and self.start_event.is_set():
|
||||
|
||||
Reference in New Issue
Block a user