Browse Source

Autogenerated documentation for github.

Ask Solem 16 years ago
parent
commit
073c6f2b37
4 changed files with 20 additions and 8 deletions
  1. 9 4
      faq.html
  2. 2 1
      index.html
  3. 0 0
      searchindex.js
  4. 9 3
      sources/faq.txt

+ 9 - 4
faq.html

@@ -74,12 +74,13 @@ Transaction Model and Locking</a> in the MySQL user manual.</p>
 <p><strong>Answer:</strong> See <a class="reference internal" href="#mysql-is-throwing-deadlock-errors-what-can-i-do">MySQL is throwing deadlock errors, what can I do?</a>.
 <p><strong>Answer:</strong> See <a class="reference internal" href="#mysql-is-throwing-deadlock-errors-what-can-i-do">MySQL is throwing deadlock errors, what can I do?</a>.
 Thanks to howsthedotcom.</p>
 Thanks to howsthedotcom.</p>
 </div>
 </div>
-<div class="section" id="my-periodic-tasks-won-t-run">
-<h3>My Periodic Tasks won&#8217;t run<a class="headerlink" href="#my-periodic-tasks-won-t-run" title="Permalink to this headline">¶</a></h3>
+<div class="section" id="why-won-t-my-task-run">
+<h3>Why won&#8217;t my Task run?<a class="headerlink" href="#why-won-t-my-task-run" title="Permalink to this headline">¶</a></h3>
 <p><strong>Answer:</strong> Did you register the task in the applications <tt class="docutils literal"><span class="pre">tasks.py</span></tt> module?
 <p><strong>Answer:</strong> Did you register the task in the applications <tt class="docutils literal"><span class="pre">tasks.py</span></tt> module?
-(or in some other module Django loads by default, like <tt class="docutils literal"><span class="pre">models.py</span></tt>?).</p>
+(or in some other module Django loads by default, like <tt class="docutils literal"><span class="pre">models.py</span></tt>?).
+Also there might be syntax errors preventing the tasks module being imported.</p>
 <p>You can find out if the celery daemon is able to run the task by executing the
 <p>You can find out if the celery daemon is able to run the task by executing the
-periodic task manually:</p>
+task manually:</p>
 <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">myapp.tasks</span> <span class="kn">import</span> <span class="n">MyPeriodicTask</span>
 <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">myapp.tasks</span> <span class="kn">import</span> <span class="n">MyPeriodicTask</span>
 <span class="gp">&gt;&gt;&gt; </span><span class="n">MyPeriodicTask</span><span class="o">.</span><span class="n">delay</span><span class="p">()</span>
 <span class="gp">&gt;&gt;&gt; </span><span class="n">MyPeriodicTask</span><span class="o">.</span><span class="n">delay</span><span class="p">()</span>
 </pre></div>
 </pre></div>
@@ -87,6 +88,10 @@ periodic task manually:</p>
 <p>Watch celery daemons logfile (or output if not running as a daemon), to see
 <p>Watch celery daemons logfile (or output if not running as a daemon), to see
 if it&#8217;s able to find the task, or if some other error is happening.</p>
 if it&#8217;s able to find the task, or if some other error is happening.</p>
 </div>
 </div>
+<div class="section" id="why-won-t-my-periodic-task-run">
+<h3>Why won&#8217;t my Periodic Task run?<a class="headerlink" href="#why-won-t-my-periodic-task-run" title="Permalink to this headline">¶</a></h3>
+<p>See <a class="reference internal" href="#why-won-t-my-task-run">Why won&#8217;t my Task run?</a>.</p>
+</div>
 <div class="section" id="can-i-send-some-tasks-to-only-some-servers">
 <div class="section" id="can-i-send-some-tasks-to-only-some-servers">
 <h3>Can I send some tasks to only some servers?<a class="headerlink" href="#can-i-send-some-tasks-to-only-some-servers" title="Permalink to this headline">¶</a></h3>
 <h3>Can I send some tasks to only some servers?<a class="headerlink" href="#can-i-send-some-tasks-to-only-some-servers" title="Permalink to this headline">¶</a></h3>
 <p>As of now there is only one use-case that works like this, and that is
 <p>As of now there is only one use-case that works like this, and that is

+ 2 - 1
index.html

@@ -72,7 +72,8 @@
 <li class="toctree-l3"><a class="reference external" href="faq.html#mysql-is-throwing-deadlock-errors-what-can-i-do">MySQL is throwing deadlock errors, what can I do?</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#mysql-is-throwing-deadlock-errors-what-can-i-do">MySQL is throwing deadlock errors, what can I do?</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#celeryd-is-not-doing-anything-just-hanging">celeryd is not doing anything, just hanging</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#celeryd-is-not-doing-anything-just-hanging">celeryd is not doing anything, just hanging</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#i-m-having-integrityerror-duplicate-key-errors-why">I&#8217;m having <tt class="docutils literal"><span class="pre">IntegrityError:</span> <span class="pre">Duplicate</span> <span class="pre">Key</span></tt> errors. Why?</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#i-m-having-integrityerror-duplicate-key-errors-why">I&#8217;m having <tt class="docutils literal"><span class="pre">IntegrityError:</span> <span class="pre">Duplicate</span> <span class="pre">Key</span></tt> errors. Why?</a></li>
-<li class="toctree-l3"><a class="reference external" href="faq.html#my-periodic-tasks-won-t-run">My Periodic Tasks won&#8217;t run</a></li>
+<li class="toctree-l3"><a class="reference external" href="faq.html#why-won-t-my-task-run">Why won&#8217;t my Task run?</a></li>
+<li class="toctree-l3"><a class="reference external" href="faq.html#why-won-t-my-periodic-task-run">Why won&#8217;t my Periodic Task run?</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#can-i-send-some-tasks-to-only-some-servers">Can I send some tasks to only some servers?</a></li>
 <li class="toctree-l3"><a class="reference external" href="faq.html#can-i-send-some-tasks-to-only-some-servers">Can I send some tasks to only some servers?</a></li>
 </ul>
 </ul>
 </li>
 </li>

File diff suppressed because it is too large
+ 0 - 0
searchindex.js


+ 9 - 3
sources/faq.txt

@@ -33,14 +33,15 @@ I'm having ``IntegrityError: Duplicate Key`` errors. Why?
 **Answer:** See `MySQL is throwing deadlock errors, what can I do?`_.
 **Answer:** See `MySQL is throwing deadlock errors, what can I do?`_.
 Thanks to howsthedotcom.
 Thanks to howsthedotcom.
 
 
-My Periodic Tasks won't run
-----------------------------
+Why won't my Task run?
+----------------------
 
 
 **Answer:** Did you register the task in the applications ``tasks.py`` module?
 **Answer:** Did you register the task in the applications ``tasks.py`` module?
 (or in some other module Django loads by default, like ``models.py``?).
 (or in some other module Django loads by default, like ``models.py``?).
+Also there might be syntax errors preventing the tasks module being imported.
 
 
 You can find out if the celery daemon is able to run the task by executing the
 You can find out if the celery daemon is able to run the task by executing the
-periodic task manually:
+task manually:
 
 
     >>> from myapp.tasks import MyPeriodicTask
     >>> from myapp.tasks import MyPeriodicTask
     >>> MyPeriodicTask.delay()
     >>> MyPeriodicTask.delay()
@@ -48,6 +49,11 @@ periodic task manually:
 Watch celery daemons logfile (or output if not running as a daemon), to see
 Watch celery daemons logfile (or output if not running as a daemon), to see
 if it's able to find the task, or if some other error is happening.
 if it's able to find the task, or if some other error is happening.
 
 
+Why won't my Periodic Task run?
+-------------------------------
+
+See `Why won't my Task run?`_.
+
 Can I send some tasks to only some servers?
 Can I send some tasks to only some servers?
 --------------------------------------------
 --------------------------------------------
 
 

Some files were not shown because too many files changed in this diff