浏览代码

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 年之前
父节点
当前提交
c04f1cc7e7
共有 1 个文件被更改,包括 3 次插入2 次删除
  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