Add reliable execution reporting and coordinated dashboard views

This commit is contained in:
aiagent
2026-10-19 04:29:33 -07:00
parent 547f62fa53
commit c2dfe311f7
41 changed files with 3867 additions and 107 deletions
+4 -1
View File
@@ -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))