Просмотр исходного кода

BasePool.on_terminate stub did not exist

Ask Solem 14 лет назад
Родитель
Сommit
b3dafae496
1 измененных файлов с 3 добавлено и 0 удалено
  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__, ))