feat: 接入企微智能机器人——异常报警/数据核验日报/设备健康日报

- flows/shared/wecom.py: WSClient 按需连接(连接→认证→发送→断开),全容错,超长分段
- flows/monitor/alert_failure.py: Prefect 事件触发(Failed/Crashed→run deployment),发群报警
- flows/monitor/daily_report.py: 每日 18:30 近7天 RIIN/SDS 核验(复用 verify)+商品完整性+OCR+失败回顾
- flows/monitor/device_check.py: 每日 09:00 内存/磁盘/GPU(80%阈值)+Docker 容器异常+服务探活
- db.py: 新增 get_goods_integrity/ping; compose worker 挂载 docker.sock+/:/host:ro+GPU
- scripts/wecom_capture_chatid.py: 一次性捕获群 chat_id 工具
This commit is contained in:
yeuimu
2026-08-27 09:40:53 +00:00
parent b9e0bc42be
commit 1d0da2a00b
12 changed files with 836 additions and 0 deletions
+28
View File
@@ -87,3 +87,31 @@ deployments:
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: wecom-alert
entrypoint: flows/monitor/alert_failure.py:wecom_alert_failure
triggers:
- type: event
enabled: true
match:
prefect.resource.id: prefect.flow-run.*
expect:
- prefect.flow-run.Failed
- prefect.flow-run.Crashed
parameters:
event: "{{ event }}"
work_pool:
name: inkreach-pool
- name: daily-report
entrypoint: flows/monitor/daily_report.py:daily_report
schedules:
- cron: 30 18 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool
- name: device-check
entrypoint: flows/monitor/device_check.py:device_check
schedules:
- cron: 0 9 * * *
timezone: Asia/Shanghai
work_pool:
name: inkreach-pool