From 9d97d788c06c2e8fbbdfbcfbee65321ac2dfb517 Mon Sep 17 00:00:00 2001 From: harshasrinivas Date: Wed, 15 Mar 2017 04:13:47 +0530 Subject: [PATCH] Update docs for meta key --- docs/topics/downloader-middleware.rst | 5 +++++ docs/topics/request-response.rst | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst index c3a454279..b808a6448 100644 --- a/docs/topics/downloader-middleware.rst +++ b/docs/topics/downloader-middleware.rst @@ -852,6 +852,11 @@ Default: ``2`` Maximum number of times to retry, in addition to the first download. +.. reqmeta:: max_retry_times + +If :attr:`Request.meta ` has ``max_retry_times`` key +set to some value, this setting will be ignored by this middleware for the corresponding request. + .. setting:: RETRY_HTTP_CODES RETRY_HTTP_CODES diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst index 67f8ec285..64a1e55fa 100644 --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -308,6 +308,7 @@ Those are: * ``ftp_user`` (See :setting:`FTP_USER` for more info) * ``ftp_password`` (See :setting:`FTP_PASSWORD` for more info) * :reqmeta:`referrer_policy` +* :reqmeta:`max_retry_times` .. reqmeta:: bindaddress @@ -342,6 +343,13 @@ download_fail_on_dataloss Whether or not to fail on broken responses. See: :setting:`DOWNLOAD_FAIL_ON_DATALOSS`. +.. reqmeta:: max_retry_times + +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. + .. _topics-request-response-ref-request-subclasses: Request subclasses