Get Workflow DAG
get_dagFetch the job dependency graph for a pipeline or workflow to analyze job requires and dependencies, identify unnecessary serialization, missing requires, and executor sizing issues.
Instructions
Return the job dependency graph (DAG) for a pipeline or workflow. Includes job requires/dependencies lists and (when include_resource_class is true) the actual resource_class that was assigned. Use this to identify unnecessary serialization, missing requires, and executor sizing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline_id | No | Pipeline UUID. Fetches all workflows in the pipeline. Required if workflow_id is not provided. | |
| workflow_id | No | Workflow UUID. Fetches jobs for this single workflow. If pipeline_id is also set, pipeline_id takes precedence. | |
| include_resource_class | No | Fetch actual resource_class from job detail endpoint (N API calls, one per job). Set false to skip for large pipelines. |