# Function runGraphPipeline

- runGraphPipeline(
  task: string,
  template: PipelineTemplate,
  stages: StageRegistry,
  options?: GraphPipelineOptions,
  ): Promise<GraphPipelineResult>

  Run a pipeline using graph-based execution.

  Compiles the template + stages into a graph, then executes via the graph executor (super-step BSP model).

  #### Parameters

  - task: string
  - template: PipelineTemplate
  - stages: StageRegistry
  - `Optional` options: GraphPipelineOptions

  #### Returns Promise<GraphPipelineResult>

  - Defined in packages/nexus-agents/src/pipeline/graph-pipeline-runner.ts:61