瀏覽代碼

Docs: Tasks: Clarify that there's no default retry behavior

Ask Solem 8 年之前
父節點
當前提交
7ce913791a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/userguide/tasks.rst

+ 3 - 0
docs/userguide/tasks.rst

@@ -649,6 +649,9 @@ General
 
 .. attribute:: Task.max_retries
 
+    Only applies if the task calls ``self.retry`` or if the task is decorated
+    with the :ref:`autoretry_for <task-autoretry>` argument.
+
     The maximum number of attempted retries before giving up.
     If the number of retries exceeds this value a :exc:`~@MaxRetriesExceededError`
     exception will be raised.  *NOTE:* You have to call :meth:`~@Task.retry`