瀏覽代碼

Document how to enable the HTTP dispatch task. Closes #560

Ask Solem 13 年之前
父節點
當前提交
75facef095
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 3 2
      celery/tests/functional/case.py
  2. 7 0
      docs/userguide/remote-tasks.rst

+ 3 - 2
celery/tests/functional/case.py

@@ -52,8 +52,9 @@ class Worker(object):
         pid = os.fork()
         if pid == 0:
             from celery import current_app
-            current_app.worker_main(["celeryd", "--loglevel=DEBUG",
-                                                "-n", self.hostname])
+            current_app.worker_main(["celeryd", "--loglevel=INFO",
+                                                "-n", self.hostname,
+                                                "-P", "solo"])
             os._exit(0)
         self.pid = pid
 

+ 7 - 0
docs/userguide/remote-tasks.rst

@@ -41,6 +41,13 @@ or if there was an error::
 
     {"status": "failure": "reason": "Invalid moon alignment."}
 
+Enabling the HTTP task
+----------------------
+
+To enable the HTTP dispatch task you have to add :mod:`celery.task.http`
+to :setting:`CELERY_IMPORTS`, or start ``celeryd`` with ``-I
+celery.task.http``.
+
 
 .. _webhook-django-example: