From acda4e1c987d2b0a766f34c047fba0cacc1074b1 Mon Sep 17 00:00:00 2001 From: MrWaradana Date: Thu, 10 Apr 2025 10:39:21 +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 58b8b70..eb7dd84 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=60, # Increased timeout to 60 seconds + timeout=timedelta(minutes=7), # Increased timeout to 60 seconds ) logger.info(