INNER CODE UNIT · Python

_load_once

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

    async def _load_once(mid, api_key, is_pinned, deadline) -> bool:
        async with semaphore:
            timeout_s = _PRELOAD_LOAD_TIMEOUT_S
            if deadline is not None:
                timeout_s = max(0.0, min(timeout_s, deadline - time.monotonic()))

            try:
                result = await proxy.load(
                    registry_id_for(mid),
                    api_key=api_key or None,
                    timeout_s=timeout_s,
                    pinned=is_pinned,
                )
            except Exception:
                logger.error("Preload of '%s' failed", mid, exc_info=True)
                return False

        if result and result[0] == "ok":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…