Skip to content

Get Execution Dag

GET
/api/v1/executions/{execution_id}/dag

Get the DAG structure for an execution.

Extracts route dependency graph from the execution’s config snapshot. Nodes represent routes, edges represent queue connections.

Args: execution_id: Execution UUID service: Execution service (injected)

Returns: DAG structure with nodes and edges

Raises: HTTPException: 404 if not found

execution_id
required
Execution Id
string

Successful Response

DAGResponse

Pipeline DAG structure extracted from config.

object
execution_id
required
Execution Id

Execution ID

string format: uuid
init_queue
Any of:
string
nodes
Nodes

Route nodes

Array<object>
DAGNode

A node in the pipeline DAG representing a route.

object
route_id
required
Route Id

Route identifier

string
name
required
Name

Human-readable route name

string
adapters
Adapters

Adapter types in this route

Array<string>
edges
Edges

Queue connections between routes

Array<object>
DAGEdge

An edge in the pipeline DAG representing queue connection.

object
from_route
required
From Route

Source route ID

string
to_route
required
To Route

Target route ID

string
queue
required
Queue

Queue connecting the routes

string

Resource not found

ErrorResponse

Standard error response matching FastAPI HTTPException format.

This model is used in OpenAPI response declarations for 4xx/5xx errors. The detail field matches FastAPI’s HTTPException structure.

object
detail
required
Detail

Error message (matches FastAPI HTTPException)

string
error_code
Any of:
string
correlation_id
Any of:
string
timestamp
Timestamp

Error timestamp

string format: date-time

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object