From 46f49e54010c55961aa4332edfa7e9a2ccf17785 Mon Sep 17 00:00:00 2001 From: macbre Date: Wed, 25 Dec 2024 23:56:43 +0100 Subject: [PATCH] Decrease the pywikibot retries - resolves #55 --- user-config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/user-config.py b/user-config.py index 74b9076..507e488 100644 --- a/user-config.py +++ b/user-config.py @@ -9,3 +9,11 @@ console_encoding = 'utf-8' password_file = 'user-password.py' + +# https://doc.wikimedia.org/pywikibot/stable/api_ref/pywikibot.config.html#settings-to-avoid-server-overload +# Maximum number of times to retry an API request before quitting. +max_retries = 1 +# Minimum time to wait before resubmitting a failed API request. +retry_wait = 5 +# Maximum time to wait before resubmitting a failed API request. +retry_max = 10