Skip to main content

Overview

Pipeline Orchestration lets you chain multiple workflow templates together into multi-step execution pipelines. Each pipeline defines a sequence of templates that run in order, with configurable failure handling (stop or continue) and real-time execution monitoring.
Pipelines are ideal for complex workflows like CI/CD, data processing, or multi-stage agent tasks that require sequential execution with visibility into each step’s status.

Architecture

Pipelines consist of three layers:
1

Workflow Templates

Reusable templates that define agent model, prompt, and parameters. Templates are created once and referenced by multiple pipelines.
2

Pipeline Definitions

Named sequences of workflow templates with failure handling rules. Stored in the pipelines table.
3

Pipeline Runs

Execution instances that track progress through steps. Each run maintains state for all steps.

Pipeline Steps

Each step references a workflow template and defines failure behavior:
Stop vs Continue: on_failure: "stop" terminates the pipeline immediately. on_failure: "continue" marks the step as failed but proceeds to the next step. Use “continue” for non-critical steps like notifications.

Run State Tracking

Each run maintains detailed state for every step:

UI Components

The Pipeline Tab provides a full management interface:

Active Run Banner

Shows currently running pipelines at the top:

Pipeline Visualization

Displays step sequence with arrows:

Run Steps Visualization

Shows execution progress with colored status dots:

API Reference

Create Pipeline

List Pipelines

Start Pipeline Run

Advance Run Step

Cancel Pipeline Run

Workflow Templates

Pipelines reference workflow templates. Create templates first:

Best Practices

  • Keep pipelines focused: 3-7 steps is optimal
  • Use descriptive names: “Deploy Production” not “Pipeline 1”
  • Group related workflows: Create separate pipelines for different domains
  • Test in isolation: Validate each template before adding to pipeline

Example Pipelines

Troubleshooting

1

Pipeline won't start

  • Verify all referenced template IDs exist
  • Check that pipeline has at least 2 steps
  • Ensure user has operator role or higher
2

Steps not advancing

  • Use the UI “Step Done” / “Step Failed” buttons to manually advance
  • Check that spawned agent sessions are completing
  • Verify spawn_id is being set correctly
3

Run stuck in 'running' state

  • Use POST /api/pipelines/run with action: "cancel" to force stop
  • Check for orphaned agent sessions
  • Review Mission Control logs for errors