Ver código fonte

Autogenerated documentation for github.

Ask Solem 16 anos atrás
pai
commit
150a6b7d05
4 arquivos alterados com 3 adições e 8 exclusões
  1. 1 1
      faq.html
  2. 1 3
      introduction.html
  3. 1 1
      sources/faq.txt
  4. 0 3
      sources/introduction.txt

+ 1 - 1
faq.html

@@ -79,7 +79,7 @@ Thanks to howsthedotcom.</p>
 <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>
 <p>You can find out if the celery daemon is able to run the task by executing the
-periodic task manually, by doing the following:</p>
+periodic 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>
 <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>

+ 1 - 3
introduction.html

@@ -134,10 +134,8 @@ by doing the following,:</p>
 <h3>Running the celery worker daemon<a class="headerlink" href="#running-the-celery-worker-daemon" title="Permalink to this headline">¶</a></h3>
 <p>To test this we&#8217;ll be running the worker daemon in the foreground, so we can
 see what&#8217;s going on without consulting the logfile:</p>
-<div class="highlight-python"><pre>::</pre>
+<div class="highlight-python"><pre>$ python manage.py celeryd</pre>
 </div>
-<blockquote>
-$ python manage.py celeryd</blockquote>
 <p>However, in production you&#8217;ll probably want to run the worker in the
 background as daemon instead:</p>
 <div class="highlight-python"><pre>$ python manage.py celeryd --daemon</pre>

+ 1 - 1
sources/faq.txt

@@ -40,7 +40,7 @@ My Periodic Tasks won't run
 (or in some other module Django loads by default, like ``models.py``?).
 
 You can find out if the celery daemon is able to run the task by executing the
-periodic task manually, by doing the following:
+periodic task manually:
 
     >>> from myapp.tasks import MyPeriodicTask
     >>> MyPeriodicTask.delay()

+ 0 - 3
sources/introduction.txt

@@ -103,11 +103,8 @@ Running the celery worker daemon
 To test this we'll be running the worker daemon in the foreground, so we can
 see what's going on without consulting the logfile::
 
-::
-    
     $ python manage.py celeryd
 
-
 However, in production you'll probably want to run the worker in the
 background as daemon instead::