Resolve_txtai_service_conflict_after_PR_406_merge

This commit is contained in:
ajaysi
2026-03-10 16:55:42 +05:30
parent 13e45acbf9
commit f78b5f1e04

View File

@@ -227,7 +227,9 @@ class TxtaiIntelligenceService:
Args:
items: List of (id, text, metadata) tuples.
"""
await self._ensure_initialized_async()
self._ensure_initialized()
if not self._initialized:
await self._ensure_initialized_async()
if not self._initialized or not self.embeddings:
message = f"Cannot index content - service not initialized for user {self.user_id}"
logger.warning(message)