20 lines
942 B
Python
20 lines
942 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 = ['价格监控-高频', '知微洞察生成', '候选股自动提拔-每30分', '健康监控数据采集-每15分', '盘前全量重评-自选退出']
|
|
for j in jobs:
|
|
if j.get('name') in targets:
|
|
print('='*70)
|
|
print(j['name'], '| last:', str(j.get('last_run_at'))[:19])
|
|
print(str(j.get('last_error'))[:1200])
|
|
print()
|
|
|
|
d2 = json.load(open('/home/hmo/.hermes/cron/jobs.json'))
|
|
jobs2 = d2 if isinstance(d2, list) else d2.get('jobs', [])
|
|
for j in jobs2:
|
|
if j.get('name') in ('市场数据采集', '记忆守卫-每日', 'wiki-self-growth', 'evolution-pulse', '大脑任务执行'):
|
|
print('='*70)
|
|
print('[default]', j['name'], '| last:', str(j.get('last_run_at'))[:19])
|
|
print(str(j.get('last_error'))[:800])
|
|
print() |