INNER CODE UNIT · Python

_ensure_offline_mode_is_supported

roboflow/inference · inference_server/inference_server/app.py:392

def _ensure_offline_mode_is_supported() -> None:
    if _cfg.OFFLINE_MODE and (_cfg.LAMBDA or _cfg.GCP_SERVERLESS):
        raise RuntimeError(
            "OFFLINE_MODE is not supported together with LAMBDA / "
            "GCP_SERVERLESS deployments because authentication and usage "
            "accounting require API connectivity."
        )
    if _cfg.OFFLINE_MODE and (
        _cfg.DEDICATED_DEPLOYMENT_WORKSPACE_URL
        or _cfg.WORKSPACES_WHITELISTED_FOR_LOCAL_DEPLOYMENT
    ):
        raise RuntimeError(
            "OFFLINE_MODE is not supported together with dedicated or "
            "workspace-whitelist authentication because API keys cannot be "
            "mapped to workspaces without API connectivity."
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…