Update docs - improve clarity

This commit is contained in:
harshasrinivas 2017-03-19 06:17:28 +05:30
parent 0d9ebd6e1e
commit 10741aca72
2 changed files with 7 additions and 5 deletions

View File

@ -852,10 +852,10 @@ Default: ``2``
Maximum number of times to retry, in addition to the first download.
.. reqmeta:: max_retry_times
If :attr:`Request.meta <scrapy.http.Request.meta>` has ``max_retry_times`` key
set to some value, this setting will be ignored by this middleware for the corresponding request.
Maximum number of retries can also be specified per-request using
:reqmeta:`max_retry_times` attribute of :attr:`Request.meta <scrapy.http.Request.meta>`.
When initialized, the :reqmeta:`max_retry_times` meta key takes higher
precedence over the :setting:`RETRY_TIMES` setting.
.. setting:: RETRY_HTTP_CODES

View File

@ -348,7 +348,9 @@ Whether or not to fail on broken responses. See:
max_retry_times
---------------
The meta key is used set retry times per request. When initialized, the :setting:`RETRY_TIMES` setting will be ignored by the downloader middleware.
The meta key is used set retry times per request. When initialized, the
:reqmeta:`max_retry_times` meta key takes higher precedence over the
:setting:`RETRY_TIMES` setting.
.. _topics-request-response-ref-request-subclasses: