Parcourir la source

update documentation for Task.backend

make it clear that it does not default to the string CELERY_RESULT_BACKEND
but a class instance which is instantiated from that string
Tom S il y a 10 ans
Parent
commit
c04f1cc7e7
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      docs/userguide/tasks.rst

+ 3 - 2
docs/userguide/tasks.rst

@@ -618,8 +618,9 @@ General
 
 .. attribute:: Task.backend
 
-    The result store backend to use for this task.  Defaults to the
-    :setting:`CELERY_RESULT_BACKEND` setting.
+    The result store backend to use for this task. An instance of one of the
+    backend classes in `celery.backends`. Defaults to `app.backend` which is
+    defined by the :setting:`CELERY_RESULT_BACKEND` setting.
 
 .. attribute:: Task.acks_late