3d88dfc1c6dd946d903b785de88e3157a34bd514
根本原因:config_sync.py 的 _cleanup_stale_records() 方法接收了 incoming_bind_ids 参数但从未使用,导致当 ROI 仍存在但其中某个 算法绑定被删除时,孤立的绑定记录继续留在 SQLite 中,推理循环 仍然从 SQLite 读取到已删除的绑定并继续生成告警。 修复内容: 1. config/database.py: 添加 get_all_bind_ids() 方法 2. core/config_sync.py: 在 _cleanup_stale_records() 中补全 使用 incoming_bind_ids 清理孤立绑定的逻辑 3. algorithms.py: 在 reload_all_algorithms() 中添加清理内存中 孤立算法实例的逻辑,防止内存泄漏
Description
边缘推理层
Languages
Python
100%