瀏覽代碼

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()