Files
tick-stock-panel/backend
Gundy 4e332c42a6 fix(monitor): 规则表并发迭代加快照, 防评估线程与 API 线程竞态
evaluate()/has_rule_type() 跑在行情轮询线程, 直接迭代 self._rules
时若 API 线程并发 add_rule/remove_rule 会抛 RuntimeError
(dictionary changed size during iteration), 该轮全部告警被上层
except 吞掉静默丢失。统一 list() 快照后迭代; set_rules 改为构建
完整 dict 后原子替换, 避免读到半装载状态; remove_rule 重建
_last_fire 同理。
2026-07-03 14:11:26 +08:00
..
2026-06-18 17:18:23 +08:00
2026-07-02 17:45:30 +08:00
2026-07-02 17:46:31 +08:00