tinyhumansai/openhuman · error
workflow scheduler graph run failed
Error message
workflow scheduler graph run failed: {e} What it means
The workflow scheduler graph's run() returned an error while driving the dispatch/run_phase loop for a workflow run. This is the engine-loop-level failure wrapper: an error escaping a node (phase selection, phase execution) or the graph runtime itself, as opposed to per-phase errors that are handled as PhaseExecOutcome internally.
Solutions
- Inspect the GraphTracingSink trace for 'workflow:<run_id>' to find the failing node
- Address the underlying node error (dispatch/load or phase execution) and resume the run
- If the graph runtime itself failed, check for tinyagents graph-engine regressions
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/openhuman/agent/orchestration/workflow_runs/graph.rs:251 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/7150c06f8a354683.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/orchestration/workflow_runs/graph.rs:251
&session,
&cancel,
model_override,
&phase,
total_spawned,
)
.await
}
}
};
let graph = build_scheduler_graph(definition.phases.len(), select, run)?.with_event_sink(
Arc::new(GraphTracingSink::new(format!("workflow:{run_id_owned}"))),
);
graph
.run(SchedulerState::default())
.await
.map_err(|e| anyhow!("workflow scheduler graph run failed: {e}"))?;
Ok(())
}
/// Structure-only [`GraphTopology`] of the workflow scheduler graph for debug /
/// inspection (issue #4249, Phase 4). Built with no-op stub effects — the
/// topology exposes only node names, edges, and routing, never closure bodies.
pub(crate) fn scheduler_graph_topology() -> Result<GraphTopology> {
let graph = build_scheduler_graph(
1,
|| async { Ok(PhaseSelection::Terminated) },
|_phase: WorkflowPhase, _spawned: u32| async { Ok(PhaseExecOutcome::Terminated) },
)?;
Ok(graph.topology())
}
View on GitHub (pinned to 7491200858)