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=
uot;disabled&quot;<br>

<div><div><br></div><div>in the celeryconfig.py 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=
><ul><li>database</li><li>cache</li><li>mongodb</li><li>redis</li><li>tyran=
t</li>

<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 rabbitmq.com">ask at rabbitmq.com</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>
<br>
&gt; I am using Celery with RabbitMQ. Lately, I have noticed that a large<b=
r>
&gt; number of temporary queues are getting made.<br>
&gt;<br>
&gt; So, I experimented and found that when a task fails (that is a tasks<b=
r>
&gt; raises an Exception), then a temporary queue with a random name (like<=
br>
&gt; c76861943b0a4f3aaa6a99a6db06952c) is formed and the queue remains.<br>
&gt;<br>
&gt; Some properties of the temporary queue as found in rabbitmqadmin are<b=
r>
&gt; as follows -<br>
&gt;<br>
&gt; auto_delete : True consumers : 0 durable : False messages : 1<br>
&gt; messages_ready : 1<br>
&gt;<br>
&gt; And one such temporary queue is made everytime a task fails (that is,<=
br>
&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;<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;<br>
&gt; How can I do that?<br>
<br>
Please see<br>
<br>
 =A0<a href=3D"http://docs.celeryproject.org/en/latest/userguide/tasks.html=
#task-states" target=3D"_blank">http://docs.celeryproject.org/en/latest/use=
rguide/tasks.html#task-states</a><br>
<br>
If you want to disable states completely, set<br>
<br>
 =A0CELERY_RESULT_BACKEND =3D &quot;disabled&quot;<br>
<br>
If you want to automatically expire uncollected states, set<br>
<a href=3D"http://docs.celeryproject.org/en/latest/configuration.html#celer=
y-amqp-task-result-expires" target=3D"_blank">http://docs.celeryproject.org=
/en/latest/configuration.html#celery-amqp-task-result-expires</a><br>
<br>
Results are disabled by default in 2.3,<br>
see changelog: <a href=3D"http://docs.celeryproject.org/en/latest/changelog=
.html#important-notes" target=3D"_blank">http://docs.celeryproject.org/en/l=
atest/changelog.html#important-notes</a><br>
<br>
<br>
&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href=3D"mailto:rabbitmq-discuss at lists.rabbitmq.com">rabbitmq-discus=
s at lists.rabbitmq.com</a><br>
&gt; <a href=3D"https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitm=
q-discuss" target=3D"_blank">https://lists.rabbitmq.com/cgi-bin/mailman/lis=
tinfo/rabbitmq-discuss</a><br>
<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>-Siddharth S=
aha<br><br><br>
</div></div></div>

--0015174be2d49cce5104ab182fe7--


More information about the rabbitmq-discuss mailing list