瀏覽代碼

Autogenerated documentation for github.

Ask Solem 16 年之前
父節點
當前提交
150a6b7d05
共有 4 個文件被更改,包括 3 次插入8 次删除
  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?
 <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>?).</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, 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>
 <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>

+ 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>
 <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
 <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>
 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>
 </div>
-<blockquote>
-$ python manage.py celeryd</blockquote>
 <p>However, in production you&#8217;ll probably want to run the worker in the
 <p>However, in production you&#8217;ll probably want to run the worker in the
 background as daemon instead:</p>
 background as daemon instead:</p>
 <div class="highlight-python"><pre>$ python manage.py celeryd --daemon</pre>
 <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``?).
 (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
 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
     >>> from myapp.tasks import MyPeriodicTask
     >>> MyPeriodicTask.delay()
     >>> 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
 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::
 see what's going on without consulting the logfile::
 
 
-::
-    
     $ python manage.py celeryd
     $ python manage.py celeryd
 
 
-
 However, in production you'll probably want to run the worker in the
 However, in production you'll probably want to run the worker in the
 background as daemon instead::
 background as daemon instead::