Rewrite management commands and remove Blessed

This commit is contained in:
GDay
2023-04-12 02:53:22 +02:00
parent 3b01fc2bd7
commit 2158edd652
11 changed files with 330 additions and 44 deletions
+1 -5
View File
@@ -41,11 +41,7 @@ class Stat(Status):
self.status = sentinel.status()
self.done_q_size = 0
self.task_q_size = 0
# 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]
self.workers = [w.process.pid for w in sentinel.pool.workers]
def uptime(self) -> float:
return (timezone.now() - self.tob).total_seconds()