INNER CODE UNIT · Python

timeout_s

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

                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":
            logger.info("Preload of '%s': %s", mid, result)
            bridge = getattr(state, "legacy_bridge", None)
            if bridge is not None:
                bridge.register_preloaded(mid)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…