Explorar o código

All pools must have on_poll_init. Closes #1364

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
e8b4b69d6c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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