10 lines
438 B
Python
10 lines
438 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', [])
|
|
for j in jobs:
|
|
if j.get('name') in ('候选股自动提拔-每30分', '候选股过滤管道-每30分', '开盘前钉对钉验证'):
|
|
print('='*70)
|
|
print(j['name'], '| last:', str(j.get('last_run_at'))[:19])
|
|
print(str(j.get('last_error'))[:900])
|
|
print() |