debug: more logs, and analize precache.py
All checks were successful
Deploy on push / deploy (push) Successful in 44s

This commit is contained in:
Stepan Vladovskiy
2025-05-19 16:10:35 -03:00
parent f0d63e28f8
commit 1690ed63aa
3 changed files with 176 additions and 52 deletions

View File

@@ -208,8 +208,8 @@ class SearchService:
logger.info(f"Initializing search service with URL: {TXTAI_SERVICE_URL}")
self.available = SEARCH_ENABLED
# Use different timeout settings for indexing and search requests
self.client = httpx.AsyncClient(timeout=30.0, base_url=TXTAI_SERVICE_URL)
self.index_client = httpx.AsyncClient(timeout=120.0, base_url=TXTAI_SERVICE_URL)
self.client = httpx.AsyncClient(timeout=10.0, base_url=TXTAI_SERVICE_URL) # Reduced timeout for regular ops
self.index_client = httpx.AsyncClient(timeout=60.0, base_url=TXTAI_SERVICE_URL) # Reduced timeout for indexing
# Initialize search cache
self.cache = SearchCache() if SEARCH_CACHE_ENABLED else None