소스 검색

BasePool.on_terminate stub did not exist

Ask Solem 14 년 전
부모
커밋
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__, ))