AAnvio
Reference ArchiveSource Docs

Workflow Engine (Phase I)

Standalone DAG executor in `@anvio/workflows`. Blueprints can delegate complex graphs via a `workflow` step.

1 min read

This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.

Original path: docs/45-workflow-engine.md

Standalone DAG executor in @anvio/workflows. Blueprints can delegate complex graphs via a workflow step.

Layout

workspace/workflows/     # DAG definitions (Workflow kind)
packages/workflows/      # DagExecutor + WorkflowRegistry

CLI

anvio workflow list
anvio workflow validate workspace/workflows/example-dag.yaml
anvio workflow run example-dag topic=architecture
anvio workflow run example-dag --dry-run

DAG Semantics

  • Nodes declare dependsOn: [node-id, ...] — executor runs ready nodes in parallel batches.
  • Node types mirror blueprint steps: agent, transform, conditional, parallel, workflow, etc.
  • Outputs use nodes.<id>.output template paths.

Blueprint Integration

steps:
  - id: pipeline
    type: workflow
    workflow: example-dag

Wire runWorkflow in BlueprintExecutor deps (platform does this when workflow registry is available).

Events

Completed runs emit anvio.workflow.completed.v1 (automation triggers on workflow.completed).

Edit on GitHub

Last updated on

On this page