Files
MoFin/archive/20260722-scripts-cleanup/check_triggered.py
T

8 lines
544 B
Python

import json
d = json.load(open('/home/hmo/.hermes/profiles/position-analyst/cron/jobs.json'))
jobs = d if isinstance(d, list) else d.get('jobs', [])
targets = ['策略评估-每周', '建议对账-每周', '数据治理-每周', '跨市场背离检测-周末',
'自选股自动重评-周末', 'state.db真空整理-每周', 'Gateway看门狗-知微']
for j in jobs:
if j.get('name') in targets:
print(f"{j['name']}: status={j.get('last_status')} last={str(j.get('last_run_at'))[:19]} err={str(j.get('last_error'))[:90]}")