You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><aclass="reference external" href="#why-is-rabbitmq-crashing" id="id26">Why is RabbitMQ crashing?</a></li>
93
93
<li><aclass="reference external" href="#can-i-use-celery-with-activemq-stomp" id="id27">Can I use celery with ActiveMQ/STOMP?</a></li>
94
-
<li><aclass="reference external" href="#what-features-are-not-supported-when-using-stomp" id="id28">What features are not supported when using STOMP?</a></li>
94
+
<li><aclass="reference external" href="#what-features-are-not-supported-when-using-ghettoq-stomp" id="id28">What features are not supported when using ghettoq/STOMP?</a></li>
<h3><aclass="toc-backref" href="#id27">Can I use celery with ActiveMQ/STOMP?</a><aclass="headerlink" href="#can-i-use-celery-with-activemq-stomp" title="Permalink to this headline">¶</a></h3>
368
368
<p><strong>Answer</strong>: Yes, but this is somewhat experimental for now.
369
369
It is working ok in a test configuration, but it has not
370
-
been tested in production like RabbitMQ has. If you have any problems with
371
-
using STOMP and celery, please report the bugs to the issue tracker:</p>
<p>First you have to use the <ttclass="docutils literal"><spanclass="pre">master</span></tt> branch of <ttclass="docutils literal"><spanclass="pre">celery</span></tt>:</p>
<p>Then you need to install the <ttclass="docutils literal"><spanclass="pre">stompbackend</span></tt> branch of <ttclass="docutils literal"><spanclass="pre">carrot</span></tt>:</p>
<p>In this example we will use a queue called <ttclass="docutils literal"><spanclass="pre">celery</span></tt> which we created in
394
381
the ActiveMQ web admin interface.</p>
395
-
<p><strong>Note</strong>: For ActiveMQ the queue name has to have <ttclass="docutils literal"><spanclass="pre">"/queue/"</span></tt> prepended to
396
-
it. i.e. the queue <ttclass="docutils literal"><spanclass="pre">celery</span></tt> becomes <ttclass="docutils literal"><spanclass="pre">/queue/celery</span></tt>.</p>
397
-
<p>Since a STOMP queue is a single named entity and it doesn’t have the
398
-
routing capabilities of AMQP you need to set both the <ttclass="docutils literal"><spanclass="pre">queue</span></tt>, and
399
-
<ttclass="docutils literal"><spanclass="pre">exchange</span></tt> settings to your queue name. This is a minor inconvenience since
400
-
carrot needs to maintain the same interface for both AMQP and STOMP (obviously
401
-
the one with the most capabilities won).</p>
402
-
<p>Use the following specific settings in your <ttclass="docutils literal"><spanclass="pre">celeryconfig.py</span></tt>/django <ttclass="docutils literal"><spanclass="pre">settings.py</span></tt>:</p>
403
-
<divclass="highlight-python"><divclass="highlight"><pre><spanclass="c"># Makes python-stomp the default backend for carrot.</span>
382
+
<p><strong>Note</strong>: When using ActiveMQ the queue name needs to have <ttclass="docutils literal"><spanclass="pre">"/queue/"</span></tt>
383
+
prepended to it. i.e. the queue <ttclass="docutils literal"><spanclass="pre">celery</span></tt> becomes <ttclass="docutils literal"><spanclass="pre">/queue/celery</span></tt>.</p>
384
+
<p>Since STOMP doesn’t have exchanges and the routing capabilities of AMQP,
385
+
you need to set <ttclass="docutils literal"><spanclass="pre">exchange</span></tt> name to the same as the queue name. This is
386
+
a minor inconvenience since carrot needs to maintain the same interface
387
+
for both AMQP and STOMP.</p>
388
+
<p>Use the following settings in your <ttclass="docutils literal"><spanclass="pre">celeryconfig.py</span></tt>/django <ttclass="docutils literal"><spanclass="pre">settings.py</span></tt>:</p>
389
+
<divclass="highlight-python"><divclass="highlight"><pre><spanclass="c"># Use the stomp carrot backend.</span>
<h3><aclass="toc-backref" href="#id28">What features are not supported when using STOMP?</a><aclass="headerlink" href="#what-features-are-not-supported-when-using-stomp" title="Permalink to this headline">¶</a></h3>
<h3><aclass="toc-backref" href="#id28">What features are not supported when using ghettoq/STOMP?</a><aclass="headerlink" href="#what-features-are-not-supported-when-using-ghettoq-stomp" title="Permalink to this headline">¶</a></h3>
425
409
<p>This is a (possible incomplete) list of features not available when
426
410
using the STOMP backend:</p>
427
411
<blockquote>
@@ -629,7 +613,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>
<li><aclass="reference internal" href="#why-is-rabbitmq-crashing">Why is RabbitMQ crashing?</a></li>
631
615
<li><aclass="reference internal" href="#can-i-use-celery-with-activemq-stomp">Can I use celery with ActiveMQ/STOMP?</a></li>
632
-
<li><aclass="reference internal" href="#what-features-are-not-supported-when-using-stomp">What features are not supported when using STOMP?</a></li>
616
+
<li><aclass="reference internal" href="#what-features-are-not-supported-when-using-ghettoq-stomp">What features are not supported when using ghettoq/STOMP?</a></li>
0 commit comments