瀏覽代碼

BasePool needs on_poll_start. Closes #1364

Ask Solem 12 年之前
父節點
當前提交
8c0d02c59b
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      celery/concurrency/base.py

+ 4 - 1
celery/concurrency/base.py

@@ -68,7 +68,10 @@ class BasePool(object):
     def on_stop(self):
         pass
 
-    def on_poll_init(self, w, hub):
+    def on_poll_init(self, worker, hub):
+        pass
+
+    def on_poll_start(self, hub):
         pass
 
     def on_apply(self, *args, **kwargs):