From 690751afffc45b96dac3acc5957f9d4971b7d0ee Mon Sep 17 00:00:00 2001 From: MrWaradana Date: Thu, 10 Apr 2025 10:42:28 +0700 Subject: [PATCH] add timeout request --- dags/fetch_maximo_daily.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/fetch_maximo_daily.py b/dags/fetch_maximo_daily.py index eb7dd84..6e42dec 100644 --- a/dags/fetch_maximo_daily.py +++ b/dags/fetch_maximo_daily.py @@ -38,7 +38,7 @@ def fetch_maximo_data(**context): response = requests.get( url=fetch_url, headers=headers, - timeout=timedelta(minutes=7), # Increased timeout to 60 seconds + timeout=420, # Increased timeout to 7 minutes (420 seconds) ) logger.info(