Explorar el Código

Merge pull request #3108 from oblalex/patch-1

Make gevent.TaskPool to tell it's pool limit
Ask Solem Hoel hace 9 años
padre
commit
c221c2c860
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      celery/concurrency/gevent.py

+ 5 - 0
celery/concurrency/gevent.py

@@ -121,3 +121,8 @@ class TaskPool(BasePool):
     @property
     def num_processes(self):
         return len(self._pool)
+        
+    def _get_info(self):
+        info = super(TaskPool, self)._get_info()
+        info['max-concurrency'] = self.limit
+        return info