update workflows-4
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user