tinyhumansai/openhuman · error

workflow fan-out failed

Error message

workflow fan-out failed: {err}

What it means

The phase's fan-out call to the orchestration session (spawning/waiting the phase's workers in bulk) failed with a non-Cancelled tinyagents error. Unlike TinyAgentsError::Cancelled (which maps to a graceful Interrupted persistence), any other fan-out error aborts the whole run with this wrap. Causes: spawn failures, harness errors, provider-level failures during worker orchestration.

Solutions

  1. Inspect the inner {err} to find whether spawn, wait, or the harness itself failed
  2. Fix the underlying cause (agent definitions, provider config, session state) and re-run/resume the workflow
  3. For transient provider failures, resume_workflow_run restarts from the first incomplete phase
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/openhuman/agent/orchestration/workflow_runs/engine.rs:712 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/71793d277f7170cb. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/orchestration/workflow_runs/engine.rs:712

            Err(TinyAgentsError::Cancelled) => {
                log::debug!(
                    target: LOG_TARGET,
                    "[workflow_run_engine] phase.cancelled_by_sdk run={run_id} phase={}",
                    phase.name
                );
                session.abort_all().await;
                persist(
                    config,
                    &run,
                    phase_states,
                    child_run_ids,
                    WorkflowRunStatus::Interrupted,
                    None,
                    false,
                )?;
                return Ok(PhaseExecOutcome::Terminated);
            }
            Err(err) => return Err(anyhow!("workflow fan-out failed: {err}")),
        };

        let mut outcomes = Vec::with_capacity(expected_outcomes);
        for item in outcome.outcomes {
            match item.result {
                Ok(value) => outcomes.push(value),
                Err(err) => {
                    return Err(anyhow!(
                        "workflow fan-out: worker {} failed: {err}",
                        item.index
                    ));
                }
            }
        }
        if outcomes.len() != expected_outcomes {
            return Err(anyhow!(
                "workflow fan-out: expected {expected_outcomes} result(s), got {}",
                outcomes.len()

View on GitHub (pinned to 7491200858)