Skip to content

Commit 645bf9f

Browse files
author
Ask Solem
committed
Rendered documentation for Github Pages.
1 parent d074e1c commit 645bf9f

File tree

185 files changed

+2239
-1007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+2239
-1007
lines changed

changelog.html

Lines changed: 469 additions & 106 deletions
Large diffs are not rendered by default.

configuration.html

Lines changed: 72 additions & 26 deletions
Large diffs are not rendered by default.

cookbook/daemonizing.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ <h3>Navigation</h3>
5656
<h1>Running celeryd as a daemon<a class="headerlink" href="#running-celeryd-as-a-daemon" title="Permalink to this headline"></a></h1>
5757
<p>Celery does not daemonize itself, please use one of the following
5858
daemonization tools.</p>
59+
<div class="contents local topic" id="contents">
60+
<ul class="simple">
61+
<li><a class="reference external" href="#start-stop-daemon" id="id2">start-stop-daemon</a></li>
62+
<li><a class="reference external" href="#supervisord" id="id3">supervisord</a></li>
63+
<li><a class="reference external" href="#launchd-os-x" id="id4">launchd (OS X)</a></li>
64+
</ul>
65+
</div>
5966
<div class="section" id="start-stop-daemon">
60-
<h2>start-stop-daemon<a class="headerlink" href="#start-stop-daemon" title="Permalink to this headline"></a></h2>
67+
<h2><a class="toc-backref" href="#id2">start-stop-daemon</a><a class="headerlink" href="#start-stop-daemon" title="Permalink to this headline"></a></h2>
6168
<ul class="simple">
6269
<li><a class="reference external" href="http://github.com/ask/celery/tree/master/contrib/debian/">contrib/debian/init.d/</a></li>
6370
</ul>
@@ -69,7 +76,7 @@ <h2><a class="reference external" href="http://supervisord.org/">supervisord</a>
6976
</ul>
7077
</div>
7178
<div class="section" id="launchd-os-x">
72-
<h2>launchd (OS X)<a class="headerlink" href="#launchd-os-x" title="Permalink to this headline"></a></h2>
79+
<h2><a class="toc-backref" href="#id4">launchd (OS X)</a><a class="headerlink" href="#launchd-os-x" title="Permalink to this headline"></a></h2>
7380
<ul class="simple">
7481
<li><a class="reference external" href="http://github.com/ask/celery/tree/master/contrib/mac/">contrib/mac/</a></li>
7582
</ul>

cookbook/tasks.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ <h3>Navigation</h3>
5454

5555
<div class="section" id="creating-tasks">
5656
<h1>Creating Tasks<a class="headerlink" href="#creating-tasks" title="Permalink to this headline"></a></h1>
57+
<div class="contents local topic" id="contents">
58+
<ul class="simple">
59+
<li><a class="reference external" href="#ensuring-a-task-is-only-executed-one-at-a-time" id="id1">Ensuring a task is only executed one at a time</a></li>
60+
</ul>
61+
</div>
5762
<div class="section" id="ensuring-a-task-is-only-executed-one-at-a-time">
58-
<h2>Ensuring a task is only executed one at a time<a class="headerlink" href="#ensuring-a-task-is-only-executed-one-at-a-time" title="Permalink to this headline"></a></h2>
63+
<h2><a class="toc-backref" href="#id1">Ensuring a task is only executed one at a time</a><a class="headerlink" href="#ensuring-a-task-is-only-executed-one-at-a-time" title="Permalink to this headline"></a></h2>
5964
<p>You can accomplish this by using a lock.</p>
6065
<p>In this example we&#8217;ll be using the cache framework to set a lock that is
6166
accessible for all workers.</p>

faq.html

Lines changed: 96 additions & 39 deletions
Large diffs are not rendered by default.

genindex.html

Lines changed: 95 additions & 87 deletions
Large diffs are not rendered by default.

getting-started/broker-installation.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,24 @@ <h3>Navigation</h3>
5454

5555
<div class="section" id="broker-installation">
5656
<h1>Broker Installation<a class="headerlink" href="#broker-installation" title="Permalink to this headline"></a></h1>
57+
<div class="contents local topic" id="contents">
58+
<ul class="simple">
59+
<li><a class="reference external" href="#installing-rabbitmq" id="id2">Installing RabbitMQ</a></li>
60+
<li><a class="reference external" href="#setting-up-rabbitmq" id="id3">Setting up RabbitMQ</a></li>
61+
<li><a class="reference external" href="#installing-rabbitmq-on-os-x" id="id4">Installing RabbitMQ on OS X</a><ul>
62+
<li><a class="reference external" href="#configuring-the-system-hostname" id="id5">Configuring the system hostname</a></li>
63+
<li><a class="reference external" href="#starting-stopping-the-rabbitmq-server" id="id6">Starting/Stopping the RabbitMQ server</a></li>
64+
</ul>
65+
</li>
66+
</ul>
67+
</div>
5768
<div class="section" id="installing-rabbitmq">
58-
<h2>Installing RabbitMQ<a class="headerlink" href="#installing-rabbitmq" title="Permalink to this headline"></a></h2>
69+
<h2><a class="toc-backref" href="#id2">Installing RabbitMQ</a><a class="headerlink" href="#installing-rabbitmq" title="Permalink to this headline"></a></h2>
5970
<p>See <a class="reference external" href="http://www.rabbitmq.com/install.html">Installing RabbitMQ</a> over at RabbitMQ&#8217;s website. For Mac OS X
6071
see <a class="reference external" href="#installing-rabbitmq-on-os-x">Installing RabbitMQ on OS X</a>.</p>
6172
</div>
6273
<div class="section" id="setting-up-rabbitmq">
63-
<h2>Setting up RabbitMQ<a class="headerlink" href="#setting-up-rabbitmq" title="Permalink to this headline"></a></h2>
74+
<h2><a class="toc-backref" href="#id3">Setting up RabbitMQ</a><a class="headerlink" href="#setting-up-rabbitmq" title="Permalink to this headline"></a></h2>
6475
<p>To use celery we need to create a RabbitMQ user, a virtual host and
6576
allow that user access to that virtual host:</p>
6677
<div class="highlight-python"><pre>$ rabbitmqctl add_user myuser mypassword
@@ -72,7 +83,7 @@ <h2>Setting up RabbitMQ<a class="headerlink" href="#setting-up-rabbitmq" title="
7283
<p>See the RabbitMQ <a class="reference external" href="http://www.rabbitmq.com/admin-guide.html">Admin Guide</a> for more information about <a class="reference external" href="http://www.rabbitmq.com/admin-guide.html#access-control">access control</a>.</p>
7384
</div>
7485
<div class="section" id="installing-rabbitmq-on-os-x">
75-
<h2>Installing RabbitMQ on OS X<a class="headerlink" href="#installing-rabbitmq-on-os-x" title="Permalink to this headline"></a></h2>
86+
<h2><a class="toc-backref" href="#id4">Installing RabbitMQ on OS X</a><a class="headerlink" href="#installing-rabbitmq-on-os-x" title="Permalink to this headline"></a></h2>
7687
<p>The easiest way to install RabbitMQ on Snow Leopard is using <a class="reference external" href="http://github.com/mxcl/homebrew/">Homebrew</a>; the new
7788
and shiny package management system for OS X.</p>
7889
<p>In this example we&#8217;ll install homebrew into <tt class="docutils literal"><span class="pre">/lol</span></tt>, but you can
@@ -97,7 +108,7 @@ <h2>Installing RabbitMQ on OS X<a class="headerlink" href="#installing-rabbitmq-
97108
<div class="highlight-python"><pre>$ brew install rabbitmq</pre>
98109
</div>
99110
<div class="section" id="configuring-the-system-hostname">
100-
<h3>Configuring the system hostname<a class="headerlink" href="#configuring-the-system-hostname" title="Permalink to this headline"></a></h3>
111+
<h3><a class="toc-backref" href="#id5">Configuring the system hostname</a><a class="headerlink" href="#configuring-the-system-hostname" title="Permalink to this headline"></a></h3>
101112
<p>If you&#8217;re using a DHCP server that is giving you a random hostname, you need
102113
to permanently configure the hostname. This is because RabbitMQ uses the hostname
103114
to communicate with nodes.</p>
@@ -127,7 +138,7 @@ <h3>Configuring the system hostname<a class="headerlink" href="#configuring-the-
127138
then RabbitMQ will try to use <tt class="docutils literal"><span class="pre">rabbit&#64;23</span></tt>, which is an illegal hostname.</p>
128139
</div>
129140
<div class="section" id="starting-stopping-the-rabbitmq-server">
130-
<h3>Starting/Stopping the RabbitMQ server<a class="headerlink" href="#starting-stopping-the-rabbitmq-server" title="Permalink to this headline"></a></h3>
141+
<h3><a class="toc-backref" href="#id6">Starting/Stopping the RabbitMQ server</a><a class="headerlink" href="#starting-stopping-the-rabbitmq-server" title="Permalink to this headline"></a></h3>
131142
<p>To start the server:</p>
132143
<div class="highlight-python"><pre>$ sudo rabbitmq-server</pre>
133144
</div>

getting-started/first-steps-with-celery.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,16 @@ <h3>Navigation</h3>
5454

5555
<div class="section" id="first-steps-with-celery">
5656
<h1>First steps with Celery<a class="headerlink" href="#first-steps-with-celery" title="Permalink to this headline"></a></h1>
57+
<div class="contents local topic" id="contents">
58+
<ul class="simple">
59+
<li><a class="reference external" href="#creating-a-simple-task" id="id1">Creating a simple task</a></li>
60+
<li><a class="reference external" href="#configuration" id="id2">Configuration</a></li>
61+
<li><a class="reference external" href="#running-the-celery-worker-server" id="id3">Running the celery worker server</a></li>
62+
<li><a class="reference external" href="#executing-the-task" id="id4">Executing the task</a></li>
63+
</ul>
64+
</div>
5765
<div class="section" id="creating-a-simple-task">
58-
<h2>Creating a simple task<a class="headerlink" href="#creating-a-simple-task" title="Permalink to this headline"></a></h2>
66+
<h2><a class="toc-backref" href="#id1">Creating a simple task</a><a class="headerlink" href="#creating-a-simple-task" title="Permalink to this headline"></a></h2>
5967
<p>In this example we are creating a simple task that adds two
6068
numbers. Tasks are defined in a normal python module. The module can
6169
be named whatever you like, but the convention is to call it
@@ -76,7 +84,7 @@ <h2>Creating a simple task<a class="headerlink" href="#creating-a-simple-task" t
7684
<a class="reference internal" href="../userguide/tasks.html"><em>Executing Tasks</em></a>.</p>
7785
</div>
7886
<div class="section" id="configuration">
79-
<h2>Configuration<a class="headerlink" href="#configuration" title="Permalink to this headline"></a></h2>
87+
<h2><a class="toc-backref" href="#id2">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline"></a></h2>
8088
<p>Celery is configured by using a configuration module. By convention,
8189
this module is called <tt class="docutils literal"><span class="pre">celeryconfig.py</span></tt>. This module must be in the
8290
Python path so it can be imported.</p>
@@ -117,7 +125,7 @@ <h2>Configuration<a class="headerlink" href="#configuration" title="Permalink to
117125
<a class="reference internal" href="../configuration.html"><em>configuration directive reference</em></a>.</p>
118126
</div>
119127
<div class="section" id="running-the-celery-worker-server">
120-
<h2>Running the celery worker server<a class="headerlink" href="#running-the-celery-worker-server" title="Permalink to this headline"></a></h2>
128+
<h2><a class="toc-backref" href="#id3">Running the celery worker server</a><a class="headerlink" href="#running-the-celery-worker-server" title="Permalink to this headline"></a></h2>
121129
<p>To test we will run the worker server in the foreground, so we can
122130
see what&#8217;s going on in the terminal:</p>
123131
<div class="highlight-python"><pre>$ PYTHONPATH="." celeryd --loglevel=INFO</pre>
@@ -133,7 +141,7 @@ <h2>Running the celery worker server<a class="headerlink" href="#running-the-cel
133141
<a class="reference internal" href="../cookbook/daemonizing.html"><em>daemon mode reference</em></a></p>
134142
</div>
135143
<div class="section" id="executing-the-task">
136-
<h2>Executing the task<a class="headerlink" href="#executing-the-task" title="Permalink to this headline"></a></h2>
144+
<h2><a class="toc-backref" href="#id4">Executing the task</a><a class="headerlink" href="#executing-the-task" title="Permalink to this headline"></a></h2>
137145
<p>Whenever we want to execute our task, we can use the <tt class="docutils literal"><span class="pre">delay</span></tt> method
138146
of the task class.</p>
139147
<p>This is a handy shortcut to the <tt class="docutils literal"><span class="pre">apply_async</span></tt> method which gives

getting-started/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Getting Started<a class="headerlink" href="#getting-started" title="Permalin
5858
<tbody valign="top">
5959
<tr class="field"><th class="field-name">Release:</th><td class="field-body">1.1</td>
6060
</tr>
61-
<tr class="field"><th class="field-name">Date:</th><td class="field-body">June 07, 2010</td>
61+
<tr class="field"><th class="field-name">Date:</th><td class="field-body">June 09, 2010</td>
6262
</tr>
6363
</tbody>
6464
</table>
@@ -85,7 +85,12 @@ <h1>Getting Started<a class="headerlink" href="#getting-started" title="Permalin
8585
<li class="toctree-l2"><a class="reference internal" href="first-steps-with-celery.html#executing-the-task">Executing the task</a></li>
8686
</ul>
8787
</li>
88-
<li class="toctree-l1"><a class="reference internal" href="periodic-tasks.html">Periodic Tasks</a></li>
88+
<li class="toctree-l1"><a class="reference internal" href="periodic-tasks.html">Periodic Tasks</a><ul>
89+
<li class="toctree-l2"><a class="reference internal" href="periodic-tasks.html#introduction">Introduction</a></li>
90+
<li class="toctree-l2"><a class="reference internal" href="periodic-tasks.html#crontab-like-schedules">Crontab-like schedules</a></li>
91+
<li class="toctree-l2"><a class="reference internal" href="periodic-tasks.html#starting-celerybeat">Starting celerybeat</a></li>
92+
</ul>
93+
</li>
8994
<li class="toctree-l1"><a class="reference internal" href="resources.html">Resources</a><ul>
9095
<li class="toctree-l2"><a class="reference internal" href="resources.html#getting-help">Getting Help</a></li>
9196
<li class="toctree-l2"><a class="reference internal" href="resources.html#bug-tracker">Bug tracker</a></li>

getting-started/introduction.html

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,21 @@ <h1>Introduction<a class="headerlink" href="#introduction" title="Permalink to t
8585
databases (<a class="reference external" href="http://www.sqlalchemy.org/">SQLAlchemy</a>) is also available.</p>
8686
<p>You may also be pleased to know that full Django integration exists
8787
via the <a class="reference external" href="http://pypi.python.org/pypi/django-celery">django-celery</a> package.</p>
88+
<div class="contents local topic" id="contents">
89+
<ul class="simple">
90+
<li><a class="reference external" href="#overview" id="id1">Overview</a></li>
91+
<li><a class="reference external" href="#example" id="id2">Example</a></li>
92+
<li><a class="reference external" href="#features" id="id3">Features</a></li>
93+
<li><a class="reference external" href="#documentation" id="id4">Documentation</a></li>
94+
<li><a class="reference external" href="#installation" id="id5">Installation</a><ul>
95+
<li><a class="reference external" href="#downloading-and-installing-from-source" id="id6">Downloading and installing from source</a></li>
96+
<li><a class="reference external" href="#using-the-development-version" id="id7">Using the development version</a></li>
97+
</ul>
98+
</li>
99+
</ul>
100+
</div>
88101
<div class="section" id="overview">
89-
<h2>Overview<a class="headerlink" href="#overview" title="Permalink to this headline"></a></h2>
102+
<h2><a class="toc-backref" href="#id1">Overview</a><a class="headerlink" href="#overview" title="Permalink to this headline"></a></h2>
90103
<p>This is a high level overview of the architecture.</p>
91104
<img alt="http://cloud.github.com/downloads/ask/celery/Celery-Overview-v4.jpg" src="http://cloud.github.com/downloads/ask/celery/Celery-Overview-v4.jpg" />
92105
<p>The broker pushes tasks to the worker servers.
@@ -96,7 +109,7 @@ <h2>Overview<a class="headerlink" href="#overview" title="Permalink to this head
96109
&#8220;tombstone&#8221;).</p>
97110
</div>
98111
<div class="section" id="example">
99-
<h2>Example<a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
112+
<h2><a class="toc-backref" href="#id2">Example</a><a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
100113
<p>You probably want to see some code by now, so here&#8217;s an example task
101114
adding two numbers:</p>
102115
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">celery.decorators</span> <span class="kn">import</span> <span class="n">task</span>
@@ -115,7 +128,7 @@ <h2>Example<a class="headerlink" href="#example" title="Permalink to this headli
115128
<p>Simple!</p>
116129
</div>
117130
<div class="section" id="features">
118-
<h2>Features<a class="headerlink" href="#features" title="Permalink to this headline"></a></h2>
131+
<h2><a class="toc-backref" href="#id3">Features</a><a class="headerlink" href="#features" title="Permalink to this headline"></a></h2>
119132
<blockquote>
120133
<table border="1" class="docutils">
121134
<colgroup>
@@ -226,12 +239,12 @@ <h2>Features<a class="headerlink" href="#features" title="Permalink to this head
226239
</blockquote>
227240
</div>
228241
<div class="section" id="documentation">
229-
<h2>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline"></a></h2>
242+
<h2><a class="toc-backref" href="#id4">Documentation</a><a class="headerlink" href="#documentation" title="Permalink to this headline"></a></h2>
230243
<p>The <a class="reference external" href="http://ask.github.com/celery/">latest documentation</a> with user guides, tutorials and API reference
231244
is hosted at Github.</p>
232245
</div>
233246
<div class="section" id="installation">
234-
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline"></a></h2>
247+
<h2><a class="toc-backref" href="#id5">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline"></a></h2>
235248
<p>You can install <tt class="docutils literal"><span class="pre">celery</span></tt> either via the Python Package Index (PyPI)
236249
or from source.</p>
237250
<p>To install using <tt class="docutils literal"><span class="pre">pip</span></tt>,:</p>
@@ -241,7 +254,7 @@ <h2>Installation<a class="headerlink" href="#installation" title="Permalink to t
241254
<div class="highlight-python"><pre>$ easy_install celery</pre>
242255
</div>
243256
<div class="section" id="downloading-and-installing-from-source">
244-
<h3>Downloading and installing from source<a class="headerlink" href="#downloading-and-installing-from-source" title="Permalink to this headline"></a></h3>
257+
<h3><a class="toc-backref" href="#id6">Downloading and installing from source</a><a class="headerlink" href="#downloading-and-installing-from-source" title="Permalink to this headline"></a></h3>
245258
<p>Download the latest version of <tt class="docutils literal"><span class="pre">celery</span></tt> from
246259
<a class="reference external" href="http://pypi.python.org/pypi/celery/">http://pypi.python.org/pypi/celery/</a></p>
247260
<p>You can install it by doing the following,:</p>
@@ -252,7 +265,7 @@ <h3>Downloading and installing from source<a class="headerlink" href="#downloadi
252265
</div>
253266
</div>
254267
<div class="section" id="using-the-development-version">
255-
<h3>Using the development version<a class="headerlink" href="#using-the-development-version" title="Permalink to this headline"></a></h3>
268+
<h3><a class="toc-backref" href="#id7">Using the development version</a><a class="headerlink" href="#using-the-development-version" title="Permalink to this headline"></a></h3>
256269
<p>You can clone the repository by doing the following:</p>
257270
<div class="highlight-python"><pre>$ git clone git://github.com/ask/celery.git</pre>
258271
</div>

0 commit comments

Comments
 (0)