Skip to main content

config.settings

Shared environment-driven settings helpers for the exp runtime.

get_runtime_infra_mode

def get_runtime_infra_mode(*, default: str = DEFAULT_INFRA_MODE) -> str

Return the normalized infrastructure mode for the current process.

get_refresh_interval_seconds

def get_refresh_interval_seconds(*, allow_zero: bool = False) -> int

Return the configured snapshot refresh interval in seconds.

Parameters

allow_zero: When True, preserves a configured 0 so callers can disable automatic refresh. When False, non-positive values fall back to the default interval.

// was this page useful?