Change the default pagure module timeout to 300 seconds

The 60 seconds is still not enough for project creation, let's increase this to
300 seconds.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-08-25 11:40:52 +02:00
parent 16ab7a52ff
commit 584d2f42c2

View file

@ -66,8 +66,8 @@ class Pagure:
raise ValueError("No pagure_api_key found in the configuration file")
# The API calls could sometimes take more than the default 5 seconds
# let's increase this to 60
self._requests_session = requests.make_session(timeout=60)
# let's increase this to 300
self._requests_session = requests.make_session(timeout=300)
def get_auth_header(self) -> dict:
"""