This commit is contained in:
GDay
2023-02-23 02:42:13 +01:00
parent 01cb652071
commit a4a4e05dfe
14 changed files with 956 additions and 1268 deletions
+5 -5
View File
@@ -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()