No subject

Tue Apr 12 10:32:41 BST 2011

led. And if you write -=A0<div><br></div><div><meta http-equiv=3D"content-t=
ype" content=3D"text/html; charset=3Dutf-8">=A0CELERY_RESULT_BACKEND =3D &q=

<div><div><br></div><div>in the file, then celery does not =
start with the error -=A0</div><div>ValueError: Unknown result backend: &#3=
9;disabled&#39;. =A0Did you spell it correctly? =A0(Couldn&#39;t import &#3=
9;disabled&#39;: Empty module name)</div>

<div><br></div><div>From the doc, I do not find the disabled option for CEL=
ERY_RESULT_BACKEND. The available options are -=A0</div><div><br></div><div=

<li>amqp</li></ul><div>And in my case, I am not setting this option at all,=
 so it must be disabled by default. Is there anything else which I might be=
 missing?</div></div><div><br></div><div><br><div class=3D"gmail_quote">
On Mon, Aug 22, 2011 at 6:38 PM, Ask Solem <span dir=3D"ltr">&lt;<a href=3D=
"mailto:ask at">ask at</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><br>
On 22 Aug 2011, at 08:14, SiddharthSaha wrote:<br>
&gt; I am using Celery with RabbitMQ. Lately, I have noticed that a large<b=
&gt; number of temporary queues are getting made.<br>
&gt; So, I experimented and found that when a task fails (that is a tasks<b=
&gt; raises an Exception), then a temporary queue with a random name (like<=
&gt; c76861943b0a4f3aaa6a99a6db06952c) is formed and the queue remains.<br>
&gt; Some properties of the temporary queue as found in rabbitmqadmin are<b=
&gt; as follows -<br>
&gt; auto_delete : True consumers : 0 durable : False messages : 1<br>
&gt; messages_ready : 1<br>
&gt; And one such temporary queue is made everytime a task fails (that is,<=
&gt; raises an Exception). How to avoid this situation? Because in my<br>
&gt; production environment a large number of such queues get formed.<br>
&gt; I do not want this temporary queue to be made. When a task fails, I<br=
&gt; want that the task is tried one more time and even though it fails,<br=
&gt; the temporary queue should not be made.<br>
&gt; How can I do that?<br>
Please see<br>
 =A0<a href=3D"
#task-states" target=3D"_blank">
If you want to disable states completely, set<br>
 =A0CELERY_RESULT_BACKEND =3D &quot;disabled&quot;<br>
If you want to automatically expire uncollected states, set<br>
<a href=3D"
y-amqp-task-result-expires" target=3D"_blank">
Results are disabled by default in 2.3,<br>
see changelog: <a href=3D"
.html#important-notes" target=3D"_blank">
&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href=3D"mailto:rabbitmq-discuss at">rabbitmq-discus=
s at</a><br>
&gt; <a href=3D"
q-discuss" target=3D"_blank">
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>-Siddharth S=


More information about the rabbitmq-discuss mailing list