add timeout request

main
MrWaradana 9 months ago
parent acda4e1c98
commit 690751afff

@ -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(

Loading…
Cancel
Save