Add reliable execution reporting and coordinated dashboard views
This commit is contained in:
@@ -27,12 +27,15 @@ def main():
|
||||
started_at={}
|
||||
logs={}
|
||||
next_start={}
|
||||
roles=['worker','mirror']
|
||||
if cfg.get('notification_targets'):roles.append('notifier')
|
||||
if cfg.get('task_report_config'):roles.append('report_relay')
|
||||
with session_lock(identity):
|
||||
try:
|
||||
while True:
|
||||
state_path=Path(cfg['state_file']).expanduser()
|
||||
state=json.loads(state_path.read_text(encoding='utf-8')) if state_path.exists() else {}
|
||||
for role in (('worker','mirror','notifier') if cfg.get('notification_targets') else ('worker','mirror')):
|
||||
for role in roles:
|
||||
process=processes.get(role)
|
||||
if process and cfg.get('notification_targets'):
|
||||
report_process(cfg,root,role,process,faults,started_at.get(role))
|
||||
|
||||
Reference in New Issue
Block a user