update workflows-4
Some checks failed
Backend EC - Modal Deployment / notify-deploy (push) Has been cancelled
Backend EC - Modal Deployment / build-and-push (push) Has been cancelled

This commit is contained in:
DatTT127
2026-07-18 22:02:43 +07:00
parent d904c775c7
commit 6e9cfebf84
4 changed files with 9 additions and 33 deletions

View File

@@ -42,7 +42,10 @@ logger = logging.getLogger(__name__)
async def lifespan(app: FastAPI):
if not settings.triton_endpoint:
raise RuntimeError("TRITON_ENDPOINT is not set. Set it via environment variable.")
logger.warning("TRITON_ENDPOINT is not set. Triton-dependent features disabled.")
yield
return
logger.info("Starting CV inference service on Triton: %s", settings.triton_endpoint)
from backend.services.triton_warmup import warmup_triton_models