소스 검색

Merge pull request #3108 from oblalex/patch-1

Make gevent.TaskPool to tell it's pool limit
Ask Solem Hoel 9 년 전
부모
커밋
c221c2c860
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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