Skip to main content

Compilation

Drawing a pipeline doesn't run it. A compiler turns the pipeline model into an executable workflow — the same idea as compiling source code, but the "source" is your graph of blocks and the output is a runnable job.

It happens in stages:

Pipelinethe block graph
Compiler
Validategraph is sound
Orderby dependency
Emitone step per block
Runnable jobexecutes on Airflow
  • Validate — the graph is checked: every input is wired, every parameter is present, the whole thing is sound before anything executes.
  • Order — the blocks are sorted into an execution order from their bindings (what depends on what), and recognised combinations of steps are folded together so the workflow does no redundant work.
  • Emit — each block type knows how to turn itself into a concrete task. There's one small, focused emitter per block type (source, filter, processing, tag, report, …), so supporting a new kind of step is adding one emitter, not touching the compiler.

The result is an executable workflow that runs on Apache Airflow. You never see or write that — it's the compiler's output, the way a binary is a compiler's output.