机场推送间隔改为 2 分钟,适配峰值期高频需求

默认 120s per-city 独立推送,可通过 TELEGRAM_AIRPORT_PUSH_INTERVAL_SEC 覆盖。
最短允许 30s,避免过于频繁。

Constraint: _analyze 内部缓存 TTL 可能长于 2min,同数据可能重复推送
Scope-risk: 低,仅改间隔参数
Tested: ruff check 通过
This commit is contained in:
2569718930@qq.com
2026-05-12 19:04:21 +08:00
parent e062fedb3a
commit 9026ccf4c0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ class StartupCoordinator:
def _start_airport_high_freq_loop(self) -> LoopStatus:
enabled = _env_bool("TELEGRAM_AIRPORT_PUSH_ENABLED", True)
chat_ids = get_telegram_chat_ids_from_env()
interval = max(60, _env_int("TELEGRAM_AIRPORT_PUSH_INTERVAL_SEC", 600))
interval = max(30, _env_int("TELEGRAM_AIRPORT_PUSH_INTERVAL_SEC", 120))
details = {
"mode": "airport-periodic",
"interval_sec": interval,