Request a demo
How it works

From canvas to Airflow DAG: what the generator actually writes

How a workflow drawn in InsightDataFlow's designer is stored, and the three files the generator writes from it: a thin DAG, a config.yaml with the tasks and their order, and a properties.yaml with each node's parameters.

November 13, 2026 · 6 min read · All articles

"No-code" tools earn suspicion from engineers for a good reason: when something breaks at 2 a.m., you want to read what is running, not reverse-engineer a black box. InsightDataFlow's answer is to make the output ordinary. A workflow drawn on the canvas becomes three plain files that an engineer can read, diff and review before anything is deployed.

The canvas

The workflow designer showing carrier_manifests_nightly: a node palette on the left grouped into sources, processing, actions and library, and on the canvas eight nodes from Start through Wait for carrier manifests, CSV to Parquet, Load staging, Publish daily shipments, Check row counts and dbt tests to End.
A made-up nightly workflow on the canvas: eight nodes, seven links, saved. The palette on the left holds the node library.

Each node on the canvas is a pipeline step of a registered type (FILE_WATCHER, LOAD_DATABASE, DBT_TEST…), with a name and a description you choose. Each edge says "run this after that". Double-clicking a node opens its dialog: a Parameters tab generated from the node type's declared properties (with help text and required markers), an Input / Output tab, and a Test tab that runs the node with the parameters you entered. The header shows how many nodes and links the workflow has, whether it is saved, and how many nodes still have required parameters missing ("3 to fix" until they are filled in).

The node dialog for Load staging, of type LOAD_DATABASE: Parameters, Input/Output and Test tabs; name, description, input source set to Parquet, parquet file path, location name warehouse and table name shipments.
The dialog for one node. Fields come from the node type's declared properties; this one loads the day's Parquet into a staging table.

What is saved

The design is stored as a graph (nodes with their ids, types, positions and parents; edges from source to target) plus a separate properties map keyed by node id. Keeping parameters apart from layout is what lets the generator, and the framework at run time, read a node's configuration without caring where it sits on the canvas.

The three generated files

1. The DAG file

# Auto-generated DAG for workflow: carrier_manifests_nightly
# Uses InsightAir Framework build_task pattern (static DAG, runtime config load).
from pathlib import Path
from datetime import datetime, timedelta
from airflow import DAG
from insightair.framework.core.framework import InsightAirFramework

config_dir = Path(__file__).parent
framework = InsightAirFramework(config_dir=config_dir)
config = framework.load_config_light('config.yaml')

with DAG(
    'carrier_manifests_nightly',
    default_args={'retries': 1, 'retry_delay': timedelta(minutes=5), …},
    schedule_interval='0 2 * * *',
    start_date=datetime(2024, 1, 1),
    catchup=False,
    max_active_runs=1,
) as dag:
    start = framework.build_task('START', 'start')
    wait_for_carrier_manifests = framework.build_task('FILE_WATCHER', 'wait for carrier manifests')
    csv_to_parquet = framework.build_task('FILE_PREPROCESS', 'csv to parquet')
    load_staging = framework.build_task('LOAD_DATABASE', 'load staging')
    publish_daily_shipments = framework.build_task('TABLE_TO_TABLE', 'publish daily shipments')
    check_row_counts = framework.build_task('RECORD_COUNT_VALIDATION', 'check row counts')
    dbt_tests = framework.build_task('DBT_TEST', 'dbt tests')
    end = framework.build_task('END', 'end')

    start >> wait_for_carrier_manifests
    wait_for_carrier_manifests >> csv_to_parquet
    …
    dbt_tests >> end

The generated DAG for the made-up workflow above, lightly trimmed (default arguments and the middle of the dependency chain).

It is static and short. Each node becomes one framework.build_task(type, name) call; each edge becomes a >> dependency. The DAG declares its schedule, a start date, no catch-up and one active run at a time, with retries in the default arguments.

2. config.yaml

dag_id: carrier_manifests_nightly
properties_file: properties.yaml
schedule_interval: 0 2 * * *
default_args:
  retries: 1
tasks:
- task_id: load staging
  operator: LOAD_DATABASE
  description: Load the day's Parquet into staging.shipments
  depends_on:
  - csv to parquet
  properties:
    input_source: parquet
    parquet_file_path: carriers/parquet/{{ ds }}/
    location_name: warehouse
    schema: staging
    table_name: shipments
…

The task list in order: each task's id, the operator (the node type), its description, what it depends on, and its properties. The schedule and default arguments are repeated here so the framework has everything in one place.

3. properties.yaml

Every node's parameters keyed by node id, plus the workflow's own metadata (its name, priority, schedule, load type and catalog) and a run mode. This is the file that changes most often: editing a node's table name on the canvas and regenerating changes this file and the matching block in config.yaml, not the Python.

Know where credentials go. Node parameters name data locations instead of carrying hosts and passwords, and the DAG file carries no parameters at all. On deploy, though, the generator resolves each location a node references and writes its connection details (host, user, password and so on) into a connections section of the deployed config.yaml, so the framework can connect at run time. Treat the deployed folder as sensitive, and review the properties file too: a password pasted into a free-text parameter is still a password in a file.

How names become ids

The names you type on the canvas are not decoration; they become identifiers in three places, and it helps to know the rules before the first review.

You typeIt becomesExample from the workflow above
Workflow nameThe DAG id and the DAG file name (and, for a local-folder deploy, the folder it lands in)carrier_manifests_nightly
Node nameA Python variable in the DAG: lower case, anything other than letters, digits and underscores replaced by _wait_for_carrier_manifests
Node nameThe task_id and depends_on entries in config.yaml: lower-cased, spaces keptwait for carrier manifests
Start and End nodesThe operators CUSTOM_START and CUSTOM_END in config.yaml

Two practical consequences. Renaming a workflow after it has been deployed creates a new DAG id, so Airflow sees a new DAG next to the old one. And two nodes whose names differ only in case or punctuation ("Load staging" and "load-staging") end up as the same variable in the DAG file, so give every node a distinct, descriptive name.

Defaults baked into every DAG

  • Retries: one retry, five minutes after a failure.
  • Start date and catch-up: a fixed start date in 2024 with catchup=False, so a new DAG runs from its next scheduled slot and does not backfill.
  • Concurrency: max_active_runs=1.
  • Failure email: email_on_failure is on, with a recipient set in the generator's template. Check the default arguments in your generated DAG and make sure that address is one your team actually reads.
  • Task order: tasks are written in dependency order (a topological sort of the edges), so the DAG reads top to bottom in the order the pipeline runs.

Regenerate versus deploy

The generated source page has a Regenerate button that rebuilds the three files from the saved design, which is what you read during review. Deploy regenerates them again, this time with the resolved connections described above, and then uploads them. So the files Airflow receives are always built from the design as it stands at the moment you press Deploy: save the design, regenerate, review, then deploy without editing in between.

Why a thin DAG

  • Reviewable. A pull request for a pipeline change is a YAML diff, not a Python one.
  • Consistent. Every generated DAG has the same structure, so operating a hundred of them is like operating one.
  • Upgradable. Behaviour lives in the node implementations and the framework; improving a node improves every DAG that uses it once its logic is redeployed.

The trade-off is clear: a step that no node covers needs a node (or the SHELL, FUNCTION or API nodes as escape hatches), not a hand edit to the generated DAG, which the next regeneration would overwrite.

Next: the node library.

Draw one of your pipelines with us

Bring a pipeline you run today, hand-written or scheduled somewhere else. We will draw it in the designer, generate the DAG and walk through deploying it to your Airflow.

Request a demo