ops(nanoclaude): startup self-check for Document Server env vars

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-15 15:47:30 +09:00
parent 7dbf37a63f
commit 39e48c3b3b
+6
View File
@@ -33,6 +33,12 @@ async def lifespan(app: FastAPI):
logging.getLogger(__name__).info("Cleaned up %d old conversation messages", deleted)
except Exception:
pass
# Document Server 연동 상태 확인
logger = logging.getLogger(__name__)
if not settings.document_api_url:
logger.warning("DOCUMENT_API_URL not set — document tool disabled")
if not settings.document_api_token:
logger.warning("DOCUMENT_API_TOKEN not set — document API calls will be unauthenticated")
backend_registry.init_from_settings(settings)
backend_registry.start_health_loop(settings.health_check_interval)
jq_module.init_queue(settings.max_concurrent_jobs)