mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
failover/stream_telemetry/recording/stream 中的同步 DB 操作(commit/execute/query) 会阻塞 asyncio 事件循环,导致 Hub PING 心跳无法发送、worker idle timeout 断连。 将这些操作包装到 asyncio.to_thread() 中执行。 同时提取 Alembic 迁移脚本中重复的幂等性辅助函数到 alembic/helpers.py, 用批量查询缓存替代逐条 information_schema 查询,backfill SQL 合并为 LEFT JOIN。 新增 failover 中客户端断连的快速终止路径,避免继续无意义的重试。