From 4e021e9fb34083605e3b0862f0b0e13db113c7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Wed, 18 Dec 2024 16:59:07 +0100 Subject: [PATCH] Feature the aggressive retry policy in the code example --- docs/usage/retry.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/usage/retry.rst b/docs/usage/retry.rst index ee45b15b..ae3c5b8a 100644 --- a/docs/usage/retry.rst +++ b/docs/usage/retry.rst @@ -58,10 +58,11 @@ including ready-to-use examples. In scrapy-zyte-api, use the :setting:`ZYTE_API_RETRY_POLICY` setting or the :reqmeta:`zyte_api_retry_policy` :attr:`Request.meta -` key to point to a custom retry policy or to its -import path, to override the default retry policy: +` key to point to the import path of a retry policy +to use. For example, to switch to the :ref:`aggressive retry policy +`: .. code-block:: python :caption: settings.py - ZYTE_API_RETRY_POLICY = "project.retry_policies.CUSTOM_RETRY_POLICY" + ZYTE_API_RETRY_POLICY = "zyte_api.aggressive_retrying"