Skip to content

Commit d56a8bf

Browse files
author
Ask Solem
committed
Rendered documentation for Github Pages.
1 parent 97ae791 commit d56a8bf

20 files changed

+301
-145
lines changed

faq.html

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h1>Frequently Asked Questions<a class="headerlink" href="#frequently-asked-ques
9191
<li><a class="reference external" href="#brokers" id="id25">Brokers</a><ul>
9292
<li><a class="reference external" href="#why-is-rabbitmq-crashing" id="id26">Why is RabbitMQ crashing?</a></li>
9393
<li><a class="reference external" href="#can-i-use-celery-with-activemq-stomp" id="id27">Can I use celery with ActiveMQ/STOMP?</a></li>
94-
<li><a class="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><a class="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>
9595
</ul>
9696
</li>
9797
<li><a class="reference external" href="#features" id="id29">Features</a><ul>
@@ -367,48 +367,34 @@ <h3><a class="toc-backref" href="#id26">Why is RabbitMQ crashing?</a><a class="h
367367
<h3><a class="toc-backref" href="#id27">Can I use celery with ActiveMQ/STOMP?</a><a class="headerlink" href="#can-i-use-celery-with-activemq-stomp" title="Permalink to this headline"></a></h3>
368368
<p><strong>Answer</strong>: Yes, but this is somewhat experimental for now.
369369
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>
372-
<blockquote>
373-
<a class="reference external" href="http://github.com/ask/celery/issues/">http://github.com/ask/celery/issues/</a></blockquote>
374-
<p>First you have to use the <tt class="docutils literal"><span class="pre">master</span></tt> branch of <tt class="docutils literal"><span class="pre">celery</span></tt>:</p>
375-
<div class="highlight-python"><pre>$ git clone git://github.com/ask/celery.git
376-
$ cd celery
377-
$ sudo python setup.py install
378-
$ cd ..</pre>
379-
</div>
380-
<p>Then you need to install the <tt class="docutils literal"><span class="pre">stompbackend</span></tt> branch of <tt class="docutils literal"><span class="pre">carrot</span></tt>:</p>
381-
<div class="highlight-python"><pre>$ git clone git://github.com/ask/carrot.git
382-
$ cd carrot
383-
$ git checkout stompbackend
384-
$ sudo python setup.py install
385-
$ cd ..</pre>
370+
been tested in production. If you have any problems
371+
using STOMP with celery, please report an issue here:</p>
372+
<div class="highlight-python"><pre>http://github.com/ask/celery/issues/</pre>
386373
</div>
387-
<p>And my fork of <tt class="docutils literal"><span class="pre">python-stomp</span></tt> which adds non-blocking support:</p>
388-
<div class="highlight-python"><pre>$ hg clone http://bitbucket.org/asksol/python-stomp/
374+
<p>The STOMP carrot backend requires the <a class="reference external" href="http://pypi.python.org/pypi/stompy">stompy</a> library:</p>
375+
<div class="highlight-python"><pre>$ pip install stompy
389376
$ cd python-stomp
390377
$ sudo python setup.py install
391378
$ cd ..</pre>
392379
</div>
393380
<p>In this example we will use a queue called <tt class="docutils literal"><span class="pre">celery</span></tt> which we created in
394381
the ActiveMQ web admin interface.</p>
395-
<p><strong>Note</strong>: For ActiveMQ the queue name has to have <tt class="docutils literal"><span class="pre">&quot;/queue/&quot;</span></tt> prepended to
396-
it. i.e. the queue <tt class="docutils literal"><span class="pre">celery</span></tt> becomes <tt class="docutils literal"><span class="pre">/queue/celery</span></tt>.</p>
397-
<p>Since a STOMP queue is a single named entity and it doesn&#8217;t have the
398-
routing capabilities of AMQP you need to set both the <tt class="docutils literal"><span class="pre">queue</span></tt>, and
399-
<tt class="docutils literal"><span class="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 <tt class="docutils literal"><span class="pre">celeryconfig.py</span></tt>/django <tt class="docutils literal"><span class="pre">settings.py</span></tt>:</p>
403-
<div class="highlight-python"><div class="highlight"><pre><span class="c"># Makes python-stomp the default backend for carrot.</span>
382+
<p><strong>Note</strong>: When using ActiveMQ the queue name needs to have <tt class="docutils literal"><span class="pre">&quot;/queue/&quot;</span></tt>
383+
prepended to it. i.e. the queue <tt class="docutils literal"><span class="pre">celery</span></tt> becomes <tt class="docutils literal"><span class="pre">/queue/celery</span></tt>.</p>
384+
<p>Since STOMP doesn&#8217;t have exchanges and the routing capabilities of AMQP,
385+
you need to set <tt class="docutils literal"><span class="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 <tt class="docutils literal"><span class="pre">celeryconfig.py</span></tt>/django <tt class="docutils literal"><span class="pre">settings.py</span></tt>:</p>
389+
<div class="highlight-python"><div class="highlight"><pre><span class="c"># Use the stomp carrot backend.</span>
404390
<span class="n">CARROT_BACKEND</span> <span class="o">=</span> <span class="s">&quot;stomp&quot;</span>
405391

406392
<span class="c"># STOMP hostname and port settings.</span>
407393
<span class="n">BROKER_HOST</span> <span class="o">=</span> <span class="s">&quot;localhost&quot;</span>
408394
<span class="n">BROKER_PORT</span> <span class="o">=</span> <span class="mi">61613</span>
409395

410-
<span class="c"># The queue name to use (both queue and exchange must be set to the</span>
411-
<span class="c"># same queue name when using STOMP)</span>
396+
<span class="c"># The queue name to use (the exchange *must* be set to the</span>
397+
<span class="c"># same as the queue name when using STOMP)</span>
412398
<span class="n">CELERY_DEFAULT_QUEUE</span> <span class="o">=</span> <span class="s">&quot;/queue/celery&quot;</span>
413399
<span class="n">CELERY_DEFAULT_EXCHANGE</span> <span class="o">=</span> <span class="s">&quot;/queue/celery&quot;</span>
414400

@@ -417,11 +403,9 @@ <h3><a class="toc-backref" href="#id27">Can I use celery with ActiveMQ/STOMP?</a
417403
<span class="p">}</span>
418404
</pre></div>
419405
</div>
420-
<p>Now you can go on reading the tutorial in the README, ignoring any AMQP
421-
specific options.</p>
422406
</div>
423-
<div class="section" id="what-features-are-not-supported-when-using-stomp">
424-
<h3><a class="toc-backref" href="#id28">What features are not supported when using STOMP?</a><a class="headerlink" href="#what-features-are-not-supported-when-using-stomp" title="Permalink to this headline"></a></h3>
407+
<div class="section" id="what-features-are-not-supported-when-using-ghettoq-stomp">
408+
<h3><a class="toc-backref" href="#id28">What features are not supported when using ghettoq/STOMP?</a><a class="headerlink" href="#what-features-are-not-supported-when-using-ghettoq-stomp" title="Permalink to this headline"></a></h3>
425409
<p>This is a (possible incomplete) list of features not available when
426410
using the STOMP backend:</p>
427411
<blockquote>
@@ -629,7 +613,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>
629613
<li><a class="reference internal" href="#brokers">Brokers</a><ul>
630614
<li><a class="reference internal" href="#why-is-rabbitmq-crashing">Why is RabbitMQ crashing?</a></li>
631615
<li><a class="reference internal" href="#can-i-use-celery-with-activemq-stomp">Can I use celery with ActiveMQ/STOMP?</a></li>
632-
<li><a class="reference internal" href="#what-features-are-not-supported-when-using-stomp">What features are not supported when using STOMP?</a></li>
616+
<li><a class="reference internal" href="#what-features-are-not-supported-when-using-ghettoq-stomp">What features are not supported when using ghettoq/STOMP?</a></li>
633617
</ul>
634618
</li>
635619
<li><a class="reference internal" href="#features">Features</a><ul>

0 commit comments

Comments
 (0)