소스 검색

All pools must have on_poll_init. Closes #1364

Ask Solem 12 년 전
부모
커밋
e8b4b69d6c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      celery/concurrency/base.py

+ 3 - 0
celery/concurrency/base.py

@@ -68,6 +68,9 @@ class BasePool(object):
     def on_stop(self):
     def on_stop(self):
         pass
         pass
 
 
+    def on_poll_init(self, w, hub):
+        pass
+
     def on_apply(self, *args, **kwargs):
     def on_apply(self, *args, **kwargs):
         pass
         pass