From 4aa7047fe1a1674d6e5858893e9d02578b0d94b2 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Tue, 1 Aug 2023 22:37:39 +0200 Subject: [PATCH] Increase default retry count and timeout for python scripts Frequent 'update data' workflow failures were observed lately, some due to timeout while fetching URLs. --- src/common/endoflife.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/endoflife.py b/src/common/endoflife.py index 87014a1b..1cc61816 100644 --- a/src/common/endoflife.py +++ b/src/common/endoflife.py @@ -31,7 +31,7 @@ def list_products(method, products_filter=None, pathname="website/products"): return products_with_method -def fetch_url(url, retry_count=2, timeout=5, data=None, headers=None, encoding='utf-8'): +def fetch_url(url, retry_count=5, timeout=10, data=None, headers=None, encoding='utf-8'): last_exception = None headers = {'User-Agent': USER_AGENT} | {} if headers is None else headers