Skip to content

Commit ed3a8b2

Browse files
author
Ask Solem
committed
Rendered documentation for Github Pages.
1 parent 4fb3c01 commit ed3a8b2

20 files changed

+85
-32
lines changed

cookbook/daemonizing.html

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Running celeryd as a daemon<a class="headerlink" href="#running-celeryd-as-a
5858
daemonization tools.</p>
5959
<div class="contents local topic" id="contents">
6060
<ul class="simple">
61-
<li><a class="reference external" href="#start-stop-daemon" id="id5">start-stop-daemon</a><ul>
61+
<li><a class="reference external" href="#start-stop-daemon-debian-ubuntu" id="id5">start-stop-daemon (Debian/Ubuntu/++)</a><ul>
6262
<li><a class="reference external" href="#init-script-celeryd" id="id6">Init script: celeryd</a><ul>
6363
<li><a class="reference external" href="#example-configuration" id="id7">Example configuration</a></li>
6464
<li><a class="reference external" href="#example-django-configuration" id="id8">Example Django configuration</a></li>
@@ -73,12 +73,15 @@ <h1>Running celeryd as a daemon<a class="headerlink" href="#running-celeryd-as-a
7373
</li>
7474
</ul>
7575
</li>
76-
<li><a class="reference external" href="#supervisord" id="id14">supervisord</a></li>
77-
<li><a class="reference external" href="#launchd-os-x" id="id15">launchd (OS X)</a></li>
76+
<li><a class="reference external" href="#supervisord" id="id14">supervisord</a><ul>
77+
<li><a class="reference external" href="#trobuleshooting" id="id15">Trobuleshooting</a></li>
78+
</ul>
79+
</li>
80+
<li><a class="reference external" href="#launchd-os-x" id="id16">launchd (OS X)</a></li>
7881
</ul>
7982
</div>
80-
<div class="section" id="start-stop-daemon">
81-
<h2><a class="toc-backref" href="#id5">start-stop-daemon</a><a class="headerlink" href="#start-stop-daemon" title="Permalink to this headline"></a></h2>
83+
<div class="section" id="start-stop-daemon-debian-ubuntu">
84+
<h2><a class="toc-backref" href="#id5">start-stop-daemon (Debian/Ubuntu/++)</a><a class="headerlink" href="#start-stop-daemon-debian-ubuntu" title="Permalink to this headline"></a></h2>
8285
<p>See the <a class="reference external" href="http://github.com/ask/celery/tree/master/contrib/debian/">contrib/debian/init.d/</a> directory in the celery distribution, this
8386
directory contains init scripts for celeryd and celerybeat.</p>
8487
<p>These scripts are configured in <tt class="docutils literal"><span class="pre">/etc/default/celeryd</span></tt>.</p>
@@ -142,13 +145,13 @@ <h4><a class="toc-backref" href="#id9">Available options</a><a class="headerlink
142145
</dl>
143146
</li>
144147
<li><dl class="first docutils">
145-
<dt>CELERYD_PIDFILE</dt>
148+
<dt>CELERYD_PID_FILE</dt>
146149
<dd><p class="first last">Full path to the pidfile. Default is /var/run/celeryd.pid.</p>
147150
</dd>
148151
</dl>
149152
</li>
150153
<li><dl class="first docutils">
151-
<dt>CELERYD_LOGFILE</dt>
154+
<dt>CELERYD_LOG_FILE</dt>
152155
<dd><p class="first last">Full path to the celeryd logfile. Default is /var/log/celeryd.log</p>
153156
</dd>
154157
</dl>
@@ -288,9 +291,30 @@ <h2><a class="reference external" href="http://supervisord.org/">supervisord</a>
288291
<ul class="simple">
289292
<li><a class="reference external" href="http://github.com/ask/celery/tree/master/contrib/supervisord/">contrib/supervisord/</a></li>
290293
</ul>
294+
<div class="section" id="trobuleshooting">
295+
<h3><a class="toc-backref" href="#id15">Trobuleshooting</a><a class="headerlink" href="#trobuleshooting" title="Permalink to this headline"></a></h3>
296+
<p>If you can&#8217;t get the init scripts to work you should try running
297+
them in <em>verbose mode</em>:</p>
298+
<div class="highlight-python"><pre>$ sh -x /etc/init.d/celeryd start</pre>
299+
</div>
300+
<p>This can reveal hints as to why the service won&#8217;t start.</p>
301+
<p>Also you will see the commands generated, you can try to run the celeryd
302+
command manually to read the resulting error output.</p>
303+
<p>For example my <tt class="docutils literal"><span class="pre">sh</span> <span class="pre">-x</span></tt> output does this:</p>
304+
<div class="highlight-python"><pre>++ start-stop-daemon --start --chdir /opt/Opal/release/opal --quiet \
305+
--oknodo --background --make-pidfile --pidfile /var/run/celeryd.pid \
306+
--exec /opt/Opal/release/opal/manage.py celeryd -- --time-limit=300 \
307+
-f /var/log/celeryd.log -l INFO</pre>
308+
</div>
309+
<p>Run the celeryd command after <tt class="docutils literal"><span class="pre">--exec</span></tt> (without the <tt class="docutils literal"><span class="pre">--</span></tt>) to show the
310+
actual resulting output:</p>
311+
<div class="highlight-python"><pre>$ /opt/Opal/release/opal/manage.py celeryd --time-limit=300 \
312+
-f /var/log/celeryd.log -l INFO</pre>
313+
</div>
314+
</div>
291315
</div>
292316
<div class="section" id="launchd-os-x">
293-
<h2><a class="toc-backref" href="#id15">launchd (OS X)</a><a class="headerlink" href="#launchd-os-x" title="Permalink to this headline"></a></h2>
317+
<h2><a class="toc-backref" href="#id16">launchd (OS X)</a><a class="headerlink" href="#launchd-os-x" title="Permalink to this headline"></a></h2>
294318
<ul class="simple">
295319
<li><a class="reference external" href="http://github.com/ask/celery/tree/master/contrib/mac/">contrib/mac/</a></li>
296320
</ul>
@@ -308,7 +332,7 @@ <h2><a class="toc-backref" href="#id15">launchd (OS X)</a><a class="headerlink"
308332
<h3><a href="../index.html">Table Of Contents</a></h3>
309333
<ul>
310334
<li><a class="reference internal" href="#">Running celeryd as a daemon</a><ul>
311-
<li><a class="reference internal" href="#start-stop-daemon">start-stop-daemon</a><ul>
335+
<li><a class="reference internal" href="#start-stop-daemon-debian-ubuntu">start-stop-daemon (Debian/Ubuntu/++)</a><ul>
312336
<li><a class="reference internal" href="#init-script-celeryd">Init script: celeryd</a><ul>
313337
<li><a class="reference internal" href="#example-configuration">Example configuration</a></li>
314338
<li><a class="reference internal" href="#example-django-configuration">Example Django configuration</a></li>
@@ -323,7 +347,10 @@ <h3><a href="../index.html">Table Of Contents</a></h3>
323347
</li>
324348
</ul>
325349
</li>
326-
<li><a class="reference internal" href="#supervisord">supervisord</a></li>
350+
<li><a class="reference internal" href="#supervisord">supervisord</a><ul>
351+
<li><a class="reference internal" href="#trobuleshooting">Trobuleshooting</a></li>
352+
</ul>
353+
</li>
327354
<li><a class="reference internal" href="#launchd-os-x">launchd (OS X)</a></li>
328355
</ul>
329356
</li>

cookbook/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h1>Cookbook<a class="headerlink" href="#cookbook" title="Permalink to this head
5959
</ul>
6060
</li>
6161
<li class="toctree-l1"><a class="reference internal" href="daemonizing.html">Running celeryd as a daemon</a><ul>
62-
<li class="toctree-l2"><a class="reference internal" href="daemonizing.html#start-stop-daemon">start-stop-daemon</a></li>
62+
<li class="toctree-l2"><a class="reference internal" href="daemonizing.html#start-stop-daemon-debian-ubuntu">start-stop-daemon (Debian/Ubuntu/++)</a></li>
6363
<li class="toctree-l2"><a class="reference internal" href="daemonizing.html#supervisord">supervisord</a></li>
6464
<li class="toctree-l2"><a class="reference internal" href="daemonizing.html#launchd-os-x">launchd (OS X)</a></li>
6565
</ul>

getting-started/index.html

Lines changed: 1 addition & 1 deletion
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">2.0</td>
6060
</tr>
61-
<tr class="field"><th class="field-name">Date:</th><td class="field-body">July 23, 2010</td>
61+
<tr class="field"><th class="field-name">Date:</th><td class="field-body">July 27, 2010</td>
6262
</tr>
6363
</tbody>
6464
</table>

internals/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Internals<a class="headerlink" href="#internals" title="Permalink to this he
5858
<tbody valign="top">
5959
<tr class="field"><th class="field-name">Release:</th><td class="field-body">2.0</td>
6060
</tr>
61-
<tr class="field"><th class="field-name">Date:</th><td class="field-body">July 23, 2010</td>
61+
<tr class="field"><th class="field-name">Date:</th><td class="field-body">July 27, 2010</td>
6262
</tr>
6363
</tbody>
6464
</table>

internals/reference/celery.utils.compat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h1>Python Compatibility - celery.utils.compat<a class="headerlink" href="#pytho
105105

106106
<dl class="method">
107107
<dt id="celery.utils.compat.OrderedDict.pop">
108-
<tt class="descname">pop</tt><big>(</big><em>key</em>, <em>default=&lt;object object at 0x103b38690&gt;</em><big>)</big><a class="headerlink" href="#celery.utils.compat.OrderedDict.pop" title="Permalink to this definition"></a></dt>
108+
<tt class="descname">pop</tt><big>(</big><em>key</em>, <em>default=&lt;object object at 0x10393a0a0&gt;</em><big>)</big><a class="headerlink" href="#celery.utils.compat.OrderedDict.pop" title="Permalink to this definition"></a></dt>
109109
<dd></dd></dl>
110110

111111
<dl class="method">

internals/reference/celery.utils.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ <h1>Utilities - celery.utils<a class="headerlink" href="#utilities-celery-utils"
279279

280280
<dl class="function">
281281
<dt id="celery.utils.retry_over_time">
282-
<tt class="descclassname">celery.utils.</tt><tt class="descname">retry_over_time</tt><big>(</big><em>fun</em>, <em>catch</em>, <em>args=</em><span class="optional">[</span><span class="optional">]</span>, <em>kwargs={}</em>, <em>errback=&lt;function noop at 0x103bd7c80&gt;</em>, <em>max_retries=None</em>, <em>interval_start=2</em>, <em>interval_step=2</em>, <em>interval_max=30</em><big>)</big><a class="headerlink" href="#celery.utils.retry_over_time" title="Permalink to this definition"></a></dt>
282+
<tt class="descclassname">celery.utils.</tt><tt class="descname">retry_over_time</tt><big>(</big><em>fun</em>, <em>catch</em>, <em>args=</em><span class="optional">[</span><span class="optional">]</span>, <em>kwargs={}</em>, <em>errback=&lt;function noop at 0x1039ebe60&gt;</em>, <em>max_retries=None</em>, <em>interval_start=2</em>, <em>interval_step=2</em>, <em>interval_max=30</em><big>)</big><a class="headerlink" href="#celery.utils.retry_over_time" title="Permalink to this definition"></a></dt>
283283
<dd><p>Retry the function over and over until max retries is exceeded.</p>
284284
<p>For each retry we sleep a for a while before we try again, this interval
285285
is increased for every retry until the max seconds is reached.</p>

internals/reference/celery.worker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Multiprocessing Worker - celery.worker<a class="headerlink" href="#multiproc
5858
<span class="target" id="module-celery.worker"></span><p>The Multiprocessing Worker Server</p>
5959
<dl class="class">
6060
<dt id="celery.worker.WorkController">
61-
<em class="property">class </em><tt class="descclassname">celery.worker.</tt><tt class="descname">WorkController</tt><big>(</big><em>concurrency=None</em>, <em>logfile=None</em>, <em>loglevel=None</em>, <em>send_events=False</em>, <em>hostname=None</em>, <em>ready_callback=&lt;function noop at 0x103bd7c80&gt;</em>, <em>embed_clockservice=False</em>, <em>pool_cls='celery.concurrency.processes.TaskPool'</em>, <em>listener_cls='celery.worker.listener.CarrotListener'</em>, <em>mediator_cls='celery.worker.controllers.Mediator'</em>, <em>eta_scheduler_cls='celery.worker.controllers.ScheduleController'</em>, <em>schedule_filename='celerybeat-schedule'</em>, <em>task_time_limit=None</em>, <em>task_soft_time_limit=None</em>, <em>max_tasks_per_child=None</em>, <em>pool_putlocks=True</em>, <em>db=None</em><big>)</big><a class="headerlink" href="#celery.worker.WorkController" title="Permalink to this definition"></a></dt>
61+
<em class="property">class </em><tt class="descclassname">celery.worker.</tt><tt class="descname">WorkController</tt><big>(</big><em>concurrency=None</em>, <em>logfile=None</em>, <em>loglevel=None</em>, <em>send_events=False</em>, <em>hostname=None</em>, <em>ready_callback=&lt;function noop at 0x1039ebe60&gt;</em>, <em>embed_clockservice=False</em>, <em>pool_cls='celery.concurrency.processes.TaskPool'</em>, <em>listener_cls='celery.worker.listener.CarrotListener'</em>, <em>mediator_cls='celery.worker.controllers.Mediator'</em>, <em>eta_scheduler_cls='celery.worker.controllers.ScheduleController'</em>, <em>schedule_filename='celerybeat-schedule'</em>, <em>task_time_limit=None</em>, <em>task_soft_time_limit=None</em>, <em>max_tasks_per_child=None</em>, <em>pool_putlocks=True</em>, <em>db=None</em><big>)</big><a class="headerlink" href="#celery.worker.WorkController" title="Permalink to this definition"></a></dt>
6262
<dd><p>Executes tasks waiting in the task queue.</p>
6363
<table class="docutils field-list" frame="void" rules="none">
6464
<col class="field-name" />

internals/reference/celery.worker.job.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h1>Executable Jobs - celery.worker.job<a class="headerlink" href="#executable-j
7070

7171
<dl class="class">
7272
<dt id="celery.worker.job.TaskRequest">
73-
<em class="property">class </em><tt class="descclassname">celery.worker.job.</tt><tt class="descname">TaskRequest</tt><big>(</big><em>task_name</em>, <em>task_id</em>, <em>args</em>, <em>kwargs</em>, <em>on_ack=&lt;function noop at 0x103bd7c80&gt;</em>, <em>retries=0</em>, <em>delivery_info=None</em>, <em>hostname=None</em>, <em>email_subject=None</em>, <em>email_body=None</em>, <em>logger=None</em>, <em>eventer=None</em>, <em>**opts</em><big>)</big><a class="headerlink" href="#celery.worker.job.TaskRequest" title="Permalink to this definition"></a></dt>
73+
<em class="property">class </em><tt class="descclassname">celery.worker.job.</tt><tt class="descname">TaskRequest</tt><big>(</big><em>task_name</em>, <em>task_id</em>, <em>args</em>, <em>kwargs</em>, <em>on_ack=&lt;function noop at 0x1039ebe60&gt;</em>, <em>retries=0</em>, <em>delivery_info=None</em>, <em>hostname=None</em>, <em>email_subject=None</em>, <em>email_body=None</em>, <em>logger=None</em>, <em>eventer=None</em>, <em>**opts</em><big>)</big><a class="headerlink" href="#celery.worker.job.TaskRequest" title="Permalink to this definition"></a></dt>
7474
<dd><p>A request for task execution.</p>
7575
<table class="docutils field-list" frame="void" rules="none">
7676
<col class="field-name" />

internals/reference/celery.worker.listener.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h1>Worker Message Listener - celery.worker.listener<a class="headerlink" href="
123123
</ul>
124124
<dl class="class">
125125
<dt id="celery.worker.listener.CarrotListener">
126-
<em class="property">class </em><tt class="descclassname">celery.worker.listener.</tt><tt class="descname">CarrotListener</tt><big>(</big><em>ready_queue</em>, <em>eta_schedule</em>, <em>logger</em>, <em>init_callback=&lt;function noop at 0x103bd7c80&gt;</em>, <em>send_events=False</em>, <em>hostname=None</em>, <em>initial_prefetch_count=2</em>, <em>pool=None</em><big>)</big><a class="headerlink" href="#celery.worker.listener.CarrotListener" title="Permalink to this definition"></a></dt>
126+
<em class="property">class </em><tt class="descclassname">celery.worker.listener.</tt><tt class="descname">CarrotListener</tt><big>(</big><em>ready_queue</em>, <em>eta_schedule</em>, <em>logger</em>, <em>init_callback=&lt;function noop at 0x1039ebe60&gt;</em>, <em>send_events=False</em>, <em>hostname=None</em>, <em>initial_prefetch_count=2</em>, <em>pool=None</em><big>)</big><a class="headerlink" href="#celery.worker.listener.CarrotListener" title="Permalink to this definition"></a></dt>
127127
<dd><p>Listen for messages received from the broker and
128128
move them the the ready queue for task processing.</p>
129129
<table class="docutils field-list" frame="void" rules="none">

internals/reference/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h1>Internal Module Reference<a class="headerlink" href="#internal-module-refere
6060
<tbody valign="top">
6161
<tr class="field"><th class="field-name">Release:</th><td class="field-body">2.0</td>
6262
</tr>
63-
<tr class="field"><th class="field-name">Date:</th><td class="field-body">July 23, 2010</td>
63+
<tr class="field"><th class="field-name">Date:</th><td class="field-body">July 27, 2010</td>
6464
</tr>
6565
</tbody>
6666
</table>

0 commit comments

Comments
 (0)