add timeout request

main
MrWaradana 9 months ago
parent e9aaccc173
commit acda4e1c98

@ -38,7 +38,7 @@ def fetch_maximo_data(**context):
response = requests.get( response = requests.get(
url=fetch_url, url=fetch_url,
headers=headers, headers=headers,
timeout=60, # Increased timeout to 60 seconds timeout=timedelta(minutes=7), # Increased timeout to 60 seconds
) )
logger.info( logger.info(

Loading…
Cancel
Save