feat(gateway): 补齐号池主动探测后台任务 (#342)

- 解析 pool_advanced 主动探测开关与间隔配置
- 对齐 Python 版本的探测间隔默认值和范围限制
- 新增号池配额主动探测 worker
- 支持 codex、kiro、antigravity provider
- 使用 Redis 时间戳和 provider 级锁避免重复探测
- 接入 gateway 后台任务并补充测试
This commit is contained in:
AAEE86
2026-04-26 23:48:31 +08:00
committed by GitHub
parent baa0ddd787
commit f3a9fd4c82
10 changed files with 736 additions and 26 deletions
@@ -37,6 +37,8 @@ pub(crate) struct AdminProviderPoolConfig {
pub(crate) rate_limit_cooldown_seconds: u64,
pub(crate) overload_cooldown_seconds: u64,
pub(crate) health_policy_enabled: bool,
pub(crate) probing_enabled: bool,
pub(crate) probing_interval_minutes: u64,
pub(crate) stream_timeout_threshold: u64,
pub(crate) stream_timeout_window_seconds: u64,
pub(crate) stream_timeout_cooldown_seconds: u64,