Browse Source

BasePool.on_terminate stub did not exist

Ask Solem 14 năm trước cách đây
mục cha
commit
b3dafae496
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

@@ -43,6 +43,9 @@ class BasePool(object):
     def on_apply(self, *args, **kwargs):
         pass
 
+    def on_terminate(self):
+        pass
+
     def terminate_job(self, pid):
         raise NotImplementedError(
                 "%s does not implement kill_job" % (self.__class__, ))