Explorar o código

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

Ask Solem %!s(int64=8) %!d(string=hai) anos
pai
achega
7ce913791a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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`