You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
orchestrator: failing step never marked failed — stays in running forever #145
In backend/app/faros/runtime/orchestrator.py:60-105, the per-step loop sets status="running" (line 65), executes the capability, verifies, and only then sets status="completed". If capability.execute(...) raises, or verification.status != "passed" raises a ValueError, control flows directly to the outer except Exception (line 120) which marks the run as failed — but never touches the step record.
Repro
Plan a run with executionMode=execute such that idea_refinement fails (e.g. provider key missing).
GET /api/faros/runs/{run_id} (registered at faros_api.py:81).
Expected: the idea step is failed with the verification details, or at least ended_at populated.
Workaround
None at the data-store layer; the file is the source of truth. Operators currently have to grep events.json to figure out which node actually died.
Fix
Wrap the inner body in try/except and call state_store.update_step(run_id, node.id, {"status": "failed", "ended_at": ..., "error": str(exc)}) before re-raising. Approximate diff:
Activity