소스 검색

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