Get Started Free
Docs DAG Reference

DAG Reference

Queryvine DAGs (directed acyclic graphs) let you compose multi-step pipelines with explicit data dependencies, parallel execution groups, and conditional branching logic.

Defining tasks

A DAG is defined in YAML as a list of tasks. Each task has a connector, table or topic, and a depends_on list that controls execution order.

Dependencies

Tasks in the same DAG that don't list each other in depends_on run in parallel. Queryvine automatically detects independent branches and schedules them concurrently.

In the example above, ingest_orders and ingest_line_items run in parallel. transform_revenue only starts when both upstream tasks complete successfully.

Conditional branches

Use run_if to define conditions based on upstream task outcomes or drift event results:

Backfill strategies

When a pipeline is paused due to a critical drift event and then resumed, Queryvine can replay the missed windows. Set the backfill strategy on the DAG: