INNER CODE UNIT · Python

_MetricsServer

Soju06/codex-lb · app/main.py:346

class _MetricsServer(Protocol):
    should_exit: bool

    async def serve(self) -> None: ...


class _RingMembershipReader(Protocol):
    def list_active(
        self,
        stale_threshold_seconds: int = RING_STALE_THRESHOLD_SECONDS,
        *,
        require_endpoint: bool = False,
    ) -> Awaitable[list[str]]: ...


@lru_cache(maxsize=4)
def _static_files_for_root(static_root: Path) -> StaticFiles:
    return StaticFiles(directory=static_root, check_dir=False)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…