Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-2444 [FIX] Timeouts for Rent rolls communication (#1402)

harini-venkataramandea97f852c04
diff --git a/prompt-service/src/unstract/prompt_service/services/rentrolls_extractor/interface.py b/prompt-service/src/unstract/prompt_service/services/rentrolls_extractor/interface.py
index 91c073e4c..8b2778f7f 100644
--- a/prompt-service/src/unstract/prompt_service/services/rentrolls_extractor/interface.py
+++ b/prompt-service/src/unstract/prompt_service/services/rentrolls_extractor/interface.py
@@ -49,8 +49,9 @@ class RentRollExtractor:
}
# Make HTTP call to rent roll service
+ timeout = aiohttp.ClientTimeout(total=1800)
logger.info(f"Calling rent roll service at: {rentroll_url}")
- async with aiohttp.ClientSession() as session:
+ async with aiohttp.ClientSession(timeout=timeout) as session:
async with session.post(rentroll_url, json=payload) as response:
if response.status == 200:
result = await response.json()