fix: anomaly_monitor push_anomaly强推XMPP→messenger broadcast(老莫:异动无操作建议且过于频繁没意义,只归档)——job delivery只控stdout,notify ACTION直推通道才是真正的噪音源

This commit is contained in:
xxm
2026-08-24 13:37:27 +08:00
parent 9a3a6c782a
commit f1cb4edad7
+3 -1
View File
@@ -63,7 +63,9 @@ def push_anomaly(body):
"""ACTION 级推送(直通,不限速)"""
try:
from alert_helper import notify, ACTION
notify("持仓异动", body, level=ACTION)
# 2026-08-24 老莫:异动无操作建议且过于频繁→只进broadcast不推XMPP
from messenger import send as _msend
_msend(title="持仓异动", content=body, source="anomaly_monitor.py", channel="broadcast")
return True
except Exception as e:
print(f" ⚠️ 异动推送失败: {e}", flush=True)