mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-10 01:00:55 +08:00
Rewrite management commands and remove Blessed
This commit is contained in:
+1
-5
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user