Skip to content
Snippets Groups Projects
Commit 2939aacf authored by Simon Grasse's avatar Simon Grasse
Browse files

improvement: increase Connection timeout

parent e34ea6da
No related branches found
No related tags found
1 merge request!11Creation of first beta release version
......@@ -82,7 +82,7 @@ class Connection:
self.endpoint = endpoint
self.cache = Cache(cache_dir)
# max wait time is 30min
self.wait_seconds = [minutes * 60 for minutes in (1, 2, 2, 5, 10, 10)]
self.wait_seconds = [minutes * 60 for minutes in (5, 5, 5, 5, 5, 5)]
def get(self, query_options):
status_endpoint = self.get_status_endpoint(query_options)
......@@ -122,7 +122,7 @@ class Connection:
return status_endpoint
def wait_and_get(
self, endpoint, query_options=None, wait_secs=None, timeout=(3.05, 5)
self, endpoint, query_options=None, wait_secs=None, timeout=(3.05, 20)
):
if wait_secs:
time.sleep(wait_secs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment