Ver Fonte

Mention CELERY_ALWAYS_EAGER in the documentation for apply_async/delay. Closes #45

Ask Solem há 15 anos atrás
pai
commit
4e2b2c327f
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      celery/execute.py

+ 3 - 0
celery/execute.py

@@ -68,6 +68,9 @@ def apply_async(task, args=None, kwargs=None, countdown=None, eta=None,
         methods that have been registered with
         :mod:`carrot.serialization.registry`.
 
+    **Note**: If the ``CELERY_ALWAYS_EAGER`` setting is set, it will be
+    replaced by a local :func:`apply` call instead.
+
     """
     args = args or []
     kwargs = kwargs or {}