修复中控轮询连锁唤醒导致 CPU 居高不下:轮询加最小间隔并取消 board 每轮强制刷新看板。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-25 12:35:41 +08:00
parent 75f50fe083
commit b63f6f0962
8 changed files with 131 additions and 35 deletions
+1 -2
View File
@@ -336,8 +336,7 @@ async def _run_board_aggregate() -> dict:
await asyncio.to_thread(record_fund_snapshot_from_board, body.get("rows") or [])
except Exception:
pass
# 监控聚合完成即唤醒数据看板,持仓来源与监控 5s 同步.
dashboard_store.request_refresh()
# 看板自有轮询即可;此处再 request_refresh 会与监控锁步,聚合变慢时几乎不睡眠打满 CPU.
return {"ok": True, **body}
except asyncio.TimeoutError:
return {