浏览代码

Clear reserved_requests on connection loss. Closes #1325

Ask Solem 12 年之前
父节点
当前提交
9f5bc3a852
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      celery/worker/consumer.py

+ 1 - 0
celery/worker/consumer.py

@@ -736,6 +736,7 @@ class Consumer(object):
         # to the current channel.
         self.ready_queue.clear()
         self.timer.clear()
+        state.reserved_requests.clear()
 
         # Re-establish the broker connection and setup the task consumer.
         self.connection = self._open_connection()