mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 22:34:18 +08:00
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 同理。