修复中控轮询连锁唤醒导致 CPU 居高不下:轮询加最小间隔并取消 board 每轮强制刷新看板。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user