소스 검색

Merge branch 'ask_master'

Vitaly Babiy 16 년 전
부모
커밋
1cb69650f3
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/backends/base.py
  2. 1 0
      celery/backends/tyrant.py

+ 1 - 1
celery/backends/base.py

@@ -175,7 +175,7 @@ class BaseBackend(object):
                 raise self.get_result(task_id)
             timeout_timer.tick()
 
-    def cleanup_process(self):
+    def process_cleanup(self):
         """Cleanup actions to do at the end of a task worker process.
 
         See :func:`celery.worker.jail`.

+ 1 - 0
celery/backends/tyrant.py

@@ -63,6 +63,7 @@ class Backend(BaseBackend):
     def close(self):
         if self._connection:
             self._connection.close()
+            self._connection = None
 
     def process_cleanup(self):
         self.close()