MCPcopy Index your code
hub / github.com/su-kaka/gcli2api / get_retry_429_interval

Function get_retry_429_interval

config.py:173–182  ·  view source on GitHub ↗

Get 429 retry interval in seconds.

()

Source from the content-addressed store, hash-verified

171
172
173async def get_retry_429_interval() -> float:
174 """Get 429 retry interval in seconds."""
175 env_value = os.getenv("RETRY_429_INTERVAL")
176 if env_value:
177 try:
178 return float(env_value)
179 except ValueError:
180 pass
181
182 return float(await get_config_value("retry_429_interval", 1))
183
184
185async def get_anti_truncation_max_attempts() -> int:

Callers 1

get_retry_configFunction · 0.90

Calls 1

get_config_valueFunction · 0.85

Tested by

no test coverage detected