From 09b7271cdadef448997385487e7c499b90ca29b8 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 26 Sep 2023 20:01:23 +0000 Subject: [PATCH] fix(settings): match default timeout to benefits makes the default setting more useful --- eligibility_server/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eligibility_server/settings.py b/eligibility_server/settings.py index 7ba0a664..0e9d979f 100644 --- a/eligibility_server/settings.py +++ b/eligibility_server/settings.py @@ -9,7 +9,7 @@ DEBUG_MODE = True HOST = "0.0.0.0" # nosec LOG_LEVEL = "INFO" -REQUEST_TIMEOUT = 5 +REQUEST_TIMEOUT = (3, 20) # Database settings @@ -65,7 +65,7 @@ def log_level(self): @property def request_timeout(self): - return int(current_app.config["REQUEST_TIMEOUT"]) + return current_app.config["REQUEST_TIMEOUT"] # API settings