功能:支持skip_vlm参数跳过VLM复核直接推送企微通知

This commit is contained in:
2026-03-20 22:53:54 +08:00
parent 101a99616e
commit d39091c35f
2 changed files with 30 additions and 21 deletions

View File

@@ -48,6 +48,7 @@ async def edge_alarm_report(
# 异步触发 VLM 复核 + 企微通知(不阻塞响应)
try:
from app.services.notify_dispatch import process_alarm_notification
ext_data = report.ext_data or {}
notify_data = {
"alarm_id": alarm.alarm_id,
"alarm_type": alarm.alarm_type,
@@ -57,6 +58,7 @@ async def edge_alarm_report(
"alarm_level": alarm.alarm_level,
"snapshot_url": alarm.snapshot_url,
"area_id": alarm.area_id,
"skip_vlm": ext_data.get("skip_vlm", False),
}
asyncio.create_task(process_alarm_notification(notify_data))
except Exception as e: