From c65eb2eae31cfc18fdc3ce79a0437d39ee6b7bc1 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 17 Nov 2023 23:27:11 +1100 Subject: [PATCH] Add a default timeout on google APIs --- common/common/googleapis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/common/googleapis.py b/common/common/googleapis.py index d7aa292..09408de 100644 --- a/common/common/googleapis.py +++ b/common/common/googleapis.py @@ -6,8 +6,9 @@ import gevent from .requests import InstrumentedSession -# Wraps all requests in some metric collection +# Wraps all requests in some metric collection and default timeouts requests = InstrumentedSession() +requests.timeout = 30 class GoogleAPIClient(object):