Fail demo startup when required API routes are missing

This commit is contained in:
ي
2026-03-30 07:56:05 +05:30
parent 557f700f68
commit ef7874dcdc
2 changed files with 59 additions and 2 deletions

View File

@@ -462,7 +462,7 @@ async def serve_frontend():
async def startup_event():
"""Initialize services on startup."""
try:
startup_report = run_startup_health_routine()
startup_report = run_startup_health_routine(app)
if startup_report.get("status") != "healthy":
logger.error(f"Startup readiness finished with failures: {startup_report.get('errors', [])}")