移除市场监控推送功能及相关代码

- telegram_push.py: 删除 MARKET_MONITOR_CITIES/INTERVAL、_build_market_monitor_message、
  _run_market_monitor_cycle、start_market_monitor_push_loop、_format_percent/_format_prob
- telegram_chat_ids.py: 删除 get_market_monitor_chat_ids_from_env
- runtime_coordinator.py: 删除 _start_market_monitor_push_loop 及调用
- 移除 #市场监控 hashtag
This commit is contained in:
2569718930@qq.com
2026-05-17 20:22:42 +08:00
parent 07f61f8ca9
commit c74c193b02
4 changed files with 12 additions and 196 deletions
+8
View File
@@ -7,6 +7,7 @@ from src.utils.telegram_push import (
_build_market_monitor_message,
_run_high_freq_airport_cycle,
)
from pathlib import Path
def test_airport_status_message_starts_with_runway_city_and_station_hashtags():
@@ -158,3 +159,10 @@ def test_high_freq_airport_push_forces_analysis_refresh(monkeypatch):
assert sent is True
assert calls == [("qingdao", False, True)]
assert bot.messages
def test_high_freq_airport_push_workers_default_to_one_for_shared_cpu(monkeypatch):
source = Path("src/utils/telegram_push.py").read_text(encoding="utf-8")
assert 'TELEGRAM_AIRPORT_PUSH_MAX_WORKERS", 1' in source
assert "max(1, min(4" in source
assert "ThreadPoolExecutor(max_workers=max_workers)" in source