mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-01 23:18:12 +08:00
wip
This commit is contained in:
+5
-5
@@ -44,11 +44,11 @@ class Stat(Status):
|
||||
if Conf.QSIZE:
|
||||
self.done_q_size = sentinel.result_queue.qsize()
|
||||
self.task_q_size = sentinel.task_queue.qsize()
|
||||
if sentinel.monitor:
|
||||
self.monitor = sentinel.monitor.pid
|
||||
if sentinel.pusher:
|
||||
self.pusher = sentinel.pusher.pid
|
||||
self.workers = [w.pid for w in sentinel.pool]
|
||||
# if sentinel.monitor:
|
||||
# self.monitor = sentinel.monitor.pid
|
||||
# if sentinel.pusher:
|
||||
# self.pusher = sentinel.pusher.pid
|
||||
# self.workers = [w.pid for w in sentinel.pool]
|
||||
|
||||
def uptime(self) -> float:
|
||||
return (timezone.now() - self.tob).total_seconds()
|
||||
|
||||
Reference in New Issue
Block a user