Преглед на файлове

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 преди 10 години
родител
ревизия
c0c1965a18
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      docs/userguide/tasks.rst

+ 3 - 2
docs/userguide/tasks.rst

@@ -657,8 +657,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