소스 검색

Document default value of Task.max_retries

Ask Solem 12 년 전
부모
커밋
dd137f5442
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      docs/userguide/tasks.rst

+ 4 - 0
docs/userguide/tasks.rst

@@ -390,6 +390,10 @@ General
     exception will be raised.  *NOTE:* You have to call :meth:`~@Task.retry`
     manually, as it will not automatically retry on exception..
 
+    The default value is 3.
+    A value of :const:`None` will disable the retry limit and the
+    task will retry forever until it succeeds.
+
 .. attribute:: Task.default_retry_delay
 
     Default time in seconds before a retry of the task