mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-01 05:28:11 +08:00
Adds cpu affinity for the workers. Courtesy of the optional psutil module.
This commit is contained in:
+1
-2
@@ -123,8 +123,7 @@ class Stat(Status):
|
||||
self.task_q_size = sentinel.task_queue.qsize()
|
||||
if sentinel.pusher:
|
||||
self.pusher = sentinel.pusher.pid
|
||||
for w in sentinel.pool:
|
||||
self.workers.append(w.pid)
|
||||
self.workers = [w.pid for w in sentinel.pool]
|
||||
|
||||
def uptime(self):
|
||||
return (timezone.now() - self.tob).total_seconds()
|
||||
|
||||
Reference in New Issue
Block a user