Skip to content

Commit ce06602

Browse files
author
Ask Solem
committed
Rendered documentation for Github Pages.
1 parent 6d6dd3d commit ce06602

36 files changed

+714
-436
lines changed

configuration.html

Lines changed: 81 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,18 @@ <h1>Configuration and defaults<a class="headerlink" href="#configuration-and-def
9191
</li>
9292
<li><a class="reference external" href="#task-execution-settings" id="id24">Task execution settings</a></li>
9393
<li><a class="reference external" href="#worker-celeryd" id="id25">Worker: celeryd</a><ul>
94-
<li><a class="reference external" href="#events" id="id26">Events</a></li>
95-
<li><a class="reference external" href="#broadcast-commands" id="id27">Broadcast Commands</a></li>
96-
<li><a class="reference external" href="#logging" id="id28">Logging</a></li>
97-
<li><a class="reference external" href="#custom-component-classes-advanced" id="id29">Custom Component Classes (advanced)</a></li>
94+
<li><a class="reference external" href="#error-e-mails" id="id26">Error E-Mails</a><ul>
95+
<li><a class="reference external" href="#example-e-mail-configuration" id="id27">Example E-Mail configuration</a></li>
9896
</ul>
9997
</li>
100-
<li><a class="reference external" href="#periodic-task-server-celerybeat" id="id30">Periodic Task Server: celerybeat</a></li>
101-
<li><a class="reference external" href="#monitor-server-celerymon" id="id31">Monitor Server: celerymon</a></li>
98+
<li><a class="reference external" href="#events" id="id28">Events</a></li>
99+
<li><a class="reference external" href="#broadcast-commands" id="id29">Broadcast Commands</a></li>
100+
<li><a class="reference external" href="#logging" id="id30">Logging</a></li>
101+
<li><a class="reference external" href="#custom-component-classes-advanced" id="id31">Custom Component Classes (advanced)</a></li>
102+
</ul>
103+
</li>
104+
<li><a class="reference external" href="#periodic-task-server-celerybeat" id="id32">Periodic Task Server: celerybeat</a></li>
105+
<li><a class="reference external" href="#monitor-server-celerymon" id="id33">Monitor Server: celerymon</a></li>
102106
</ul>
103107
</div>
104108
<div class="section" id="example-configuration-file">
@@ -639,21 +643,81 @@ <h2><a class="toc-backref" href="#id25">Worker: celeryd</a><a class="headerlink"
639643
</div>
640644
</blockquote>
641645
</li>
646+
<li><p class="first">CELERY_STORE_ERRORS_EVEN_IF_IGNORED</p>
647+
<blockquote>
648+
<p>If set, the worker stores all task errors in the result store even if
649+
<tt class="docutils literal"><span class="pre">Task.ignore_result</span></tt> is on.</p>
650+
</blockquote>
651+
</li>
652+
</ul>
653+
<div class="section" id="error-e-mails">
654+
<h3><a class="toc-backref" href="#id26">Error E-Mails</a><a class="headerlink" href="#error-e-mails" title="Permalink to this headline"></a></h3>
655+
<ul>
642656
<li><p class="first">CELERY_SEND_TASK_ERROR_EMAILS</p>
643657
<blockquote>
644-
<p>If set to <tt class="xref docutils literal"><span class="pre">True</span></tt>, errors in tasks will be sent to admins by e-mail.
645-
If unset, it will send the e-mails if <tt class="docutils literal"><span class="pre">settings.DEBUG</span></tt> is False.</p>
658+
<p>If set to <tt class="xref docutils literal"><span class="pre">True</span></tt>, errors in tasks will be sent to admins by e-mail.</p>
646659
</blockquote>
647660
</li>
648-
<li><p class="first">CELERY_STORE_ERRORS_EVEN_IF_IGNORED</p>
661+
<li><p class="first">ADMINS</p>
649662
<blockquote>
650-
<p>If set, the worker stores all task errors in the result store even if
651-
<tt class="docutils literal"><span class="pre">Task.ignore_result</span></tt> is on.</p>
663+
<p>List of <tt class="docutils literal"><span class="pre">(name,</span> <span class="pre">email_address)</span></tt> tuples for the admins that should
664+
receive error e-mails.</p>
665+
</blockquote>
666+
</li>
667+
<li><p class="first">SERVER_EMAIL</p>
668+
<blockquote>
669+
<p>The e-mail address this worker sends e-mails from.
670+
Default is <tt class="docutils literal"><span class="pre">&quot;celery&#64;localhost&quot;</span></tt>.</p>
671+
</blockquote>
672+
</li>
673+
<li><p class="first">MAIL_HOST</p>
674+
<blockquote>
675+
<p>The mail server to use. Default is <tt class="docutils literal"><span class="pre">&quot;localhost&quot;</span></tt>.</p>
676+
</blockquote>
677+
</li>
678+
<li><p class="first">MAIL_HOST_USER</p>
679+
<blockquote>
680+
<p>Username (if required) to log on to the mail server with.</p>
681+
</blockquote>
682+
</li>
683+
<li><p class="first">MAIL_HOST_PASSWORD</p>
684+
<blockquote>
685+
<p>Password (if required) to log on to the mail server with.</p>
686+
</blockquote>
687+
</li>
688+
<li><p class="first">MAIL_PORT</p>
689+
<blockquote>
690+
<p>The port the mail server is listening on. Default is <tt class="docutils literal"><span class="pre">25</span></tt>.</p>
652691
</blockquote>
653692
</li>
654693
</ul>
694+
<div class="section" id="example-e-mail-configuration">
695+
<h4><a class="toc-backref" href="#id27">Example E-Mail configuration</a><a class="headerlink" href="#example-e-mail-configuration" title="Permalink to this headline"></a></h4>
696+
<p>This configuration enables the sending of error e-mails to
697+
<tt class="docutils literal"><span class="pre">george&#64;vandelay.com</span></tt> and <tt class="docutils literal"><span class="pre">kramer&#64;vandelay.com</span></tt>:</p>
698+
<div class="highlight-python"><div class="highlight"><pre><span class="c"># Enables error e-mails.</span>
699+
<span class="n">CELERY_SEND_TASK_ERROR_EMAILS</span> <span class="o">=</span> <span class="bp">True</span>
700+
701+
<span class="c"># Name and e-mail addresses of recipients</span>
702+
<span class="n">ADMINS</span> <span class="o">=</span> <span class="p">(</span>
703+
<span class="p">(</span><span class="s">&quot;George Costanza&quot;</span><span class="p">,</span> <span class="s">&quot;[email protected]&quot;</span><span class="p">),</span>
704+
<span class="p">(</span><span class="s">&quot;Cosmo Kramer&quot;</span><span class="p">,</span> <span class="s">&quot;[email protected]&quot;</span><span class="p">),</span>
705+
<span class="p">)</span>
706+
707+
<span class="c"># E-mail address used as sender (From field).</span>
708+
<span class="n">SERVER_EMAIL</span> <span class="o">=</span> <span class="s">&quot;[email protected]&quot;</span>
709+
710+
<span class="c"># Mailserver configuration</span>
711+
<span class="n">EMAIL_HOST</span> <span class="o">=</span> <span class="s">&quot;mail.vandelay.com&quot;</span>
712+
<span class="n">EMAIL_PORT</span> <span class="o">=</span> <span class="mi">25</span>
713+
<span class="c"># EMAIL_HOST_USER = &quot;servers&quot;</span>
714+
<span class="c"># EMAIL_HOST_PASSWORD = &quot;s3cr3t&quot;</span>
715+
</pre></div>
716+
</div>
717+
</div>
718+
</div>
655719
<div class="section" id="events">
656-
<h3><a class="toc-backref" href="#id26">Events</a><a class="headerlink" href="#events" title="Permalink to this headline"></a></h3>
720+
<h3><a class="toc-backref" href="#id28">Events</a><a class="headerlink" href="#events" title="Permalink to this headline"></a></h3>
657721
<ul>
658722
<li><p class="first">CELERY_SEND_EVENTS</p>
659723
<blockquote>
@@ -687,7 +751,7 @@ <h3><a class="toc-backref" href="#id26">Events</a><a class="headerlink" href="#e
687751
</ul>
688752
</div>
689753
<div class="section" id="broadcast-commands">
690-
<h3><a class="toc-backref" href="#id27">Broadcast Commands</a><a class="headerlink" href="#broadcast-commands" title="Permalink to this headline"></a></h3>
754+
<h3><a class="toc-backref" href="#id29">Broadcast Commands</a><a class="headerlink" href="#broadcast-commands" title="Permalink to this headline"></a></h3>
691755
<ul>
692756
<li><p class="first">CELERY_BROADCAST_QUEUE</p>
693757
<blockquote>
@@ -711,7 +775,7 @@ <h3><a class="toc-backref" href="#id27">Broadcast Commands</a><a class="headerli
711775
</ul>
712776
</div>
713777
<div class="section" id="logging">
714-
<h3><a class="toc-backref" href="#id28">Logging</a><a class="headerlink" href="#logging" title="Permalink to this headline"></a></h3>
778+
<h3><a class="toc-backref" href="#id30">Logging</a><a class="headerlink" href="#logging" title="Permalink to this headline"></a></h3>
715779
<ul>
716780
<li><dl class="first docutils">
717781
<dt>CELERYD_LOG_FILE</dt>
@@ -753,7 +817,7 @@ <h3><a class="toc-backref" href="#id28">Logging</a><a class="headerlink" href="#
753817
</ul>
754818
</div>
755819
<div class="section" id="custom-component-classes-advanced">
756-
<h3><a class="toc-backref" href="#id29">Custom Component Classes (advanced)</a><a class="headerlink" href="#custom-component-classes-advanced" title="Permalink to this headline"></a></h3>
820+
<h3><a class="toc-backref" href="#id31">Custom Component Classes (advanced)</a><a class="headerlink" href="#custom-component-classes-advanced" title="Permalink to this headline"></a></h3>
757821
<ul>
758822
<li><p class="first">CELERYD_POOL</p>
759823
<blockquote>
@@ -783,7 +847,7 @@ <h3><a class="toc-backref" href="#id29">Custom Component Classes (advanced)</a><
783847
</div>
784848
</div>
785849
<div class="section" id="periodic-task-server-celerybeat">
786-
<h2><a class="toc-backref" href="#id30">Periodic Task Server: celerybeat</a><a class="headerlink" href="#periodic-task-server-celerybeat" title="Permalink to this headline"></a></h2>
850+
<h2><a class="toc-backref" href="#id32">Periodic Task Server: celerybeat</a><a class="headerlink" href="#periodic-task-server-celerybeat" title="Permalink to this headline"></a></h2>
787851
<ul>
788852
<li><p class="first">CELERYBEAT_SCHEDULE_FILENAME</p>
789853
<blockquote>
@@ -820,7 +884,7 @@ <h2><a class="toc-backref" href="#id30">Periodic Task Server: celerybeat</a><a c
820884
</ul>
821885
</div>
822886
<div class="section" id="monitor-server-celerymon">
823-
<h2><a class="toc-backref" href="#id31">Monitor Server: celerymon</a><a class="headerlink" href="#monitor-server-celerymon" title="Permalink to this headline"></a></h2>
887+
<h2><a class="toc-backref" href="#id33">Monitor Server: celerymon</a><a class="headerlink" href="#monitor-server-celerymon" title="Permalink to this headline"></a></h2>
824888
<ul>
825889
<li><dl class="first docutils">
826890
<dt>CELERYMON_LOG_FILE</dt>

0 commit comments

Comments
 (0)