Преглед на файлове

AMQP Result Backend: Enable auto_delete for the result queues again

Ask Solem преди 14 години
родител
ревизия
a08d194b3d
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      celery/backends/amqp.py

+ 2 - 2
celery/backends/amqp.py

@@ -25,7 +25,7 @@ class ResultPublisher(Publisher):
     delivery_mode = conf.RESULT_PERSISTENT and 2 or 1
     serializer = conf.RESULT_SERIALIZER
     durable = conf.RESULT_PERSISTENT
-    auto_delete = False
+    auto_delete = True
 
     def __init__(self, connection, task_id, **kwargs):
         super(ResultPublisher, self).__init__(connection,
@@ -38,7 +38,7 @@ class ResultConsumer(Consumer):
     exchange_type = conf.RESULT_EXCHANGE_TYPE
     durable = conf.RESULT_PERSISTENT
     no_ack = True
-    auto_delete = False
+    auto_delete = True
 
     def __init__(self, connection, task_id, **kwargs):
         routing_key = task_id.replace("-", "")