INNER CODE UNIT · Python
_warn_if_stream_manager_died
roboflow/inference · inference_server/inference_server/app.py:221
def _warn_if_stream_manager_died(process: Any) -> None:
if process.is_alive():
return None
logger.warning(
"The stream manager process exited with code %s right after start; the "
"/inference_pipelines routes will fail until the server restarts. With "
"NUM_WORKERS > 1 only one worker's manager can bind STREAM_MANAGER_PORT.",
process.exitcode,
)
return None
@asynccontextmanager
async def _lifespan(app: FastAPI):
# Keep multipart uploads in memory — Starlette default is 1MB, which causes
# disk rollover (write + read) for typical image uploads (2-10MB).