Bläddra i källkod

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

Ask Solem 13 år sedan
förälder
incheckning
75facef095
2 ändrade filer med 10 tillägg och 2 borttagningar
  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: