Browse Source

All pools must have on_poll_init. Closes #1364

Ask Solem 12 năm trước cách đây
mục cha
commit
e8b4b69d6c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      celery/concurrency/base.py

+ 3 - 0
celery/concurrency/base.py

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