소스 검색

Don't close channel after sending result

Ask Solem 14 년 전
부모
커밋
74a8701279
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      celery/backends/amqp.py

+ 1 - 4
celery/backends/amqp.py

@@ -90,10 +90,7 @@ class AMQPBackend(BaseDictBackend):
         else:
         else:
             channel = connection._result_producer_chan = connection.channel()
             channel = connection._result_producer_chan = connection.channel()
 
 
-        try:
-            self._create_producer(task_id, channel).publish(meta)
-        finally:
-            channel.close()
+        self._create_producer(task_id, channel).publish(meta)
 
 
     def revive(self, channel):
     def revive(self, channel):
         pass
         pass