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