Airflow DAG Platform

Insight

Three DAGs on one shared template and 72 tests without Airflow services or a DB; the full DAG runs in 440 s, 413 s of it in the forecast task

Interactive: every figure is computed from the project’s own data, so you can move the controls instead of taking the sentence on trust.

What the case measured

  • Synthetic data data
  • Live demo
  • Open code
  • 7 tools in the stack stack
Situation
A hand-run report from Postgres into Google Sheets produced delays, copy errors and no reproducibility at all
Task
Replace the manual export with a reproducible, idempotent pipeline with DQ validation, failure alerts and run metrics
Action
A platform on Airflow 3: the DAG template fetch → validate → write → record_metrics and the shared modules config, dq, alerts, metrics, output, windows
Result
Three DAGs on one shared template and 72 tests without Airflow services or a DB; the full DAG runs in 440 s, 413 s of it in the forecast task
Stack
PythonApache Airflow 3PostgreSQLDocker ComposeGoogle Sheets APIpytestuv
Source View on GitHub → Updated: Nov 1, 2026

▶ Data-flow diagram — self-contained HTML, opens in a browser — no install, no build

Situation

A hand-run sales report — a SQL client, then a copy of the aggregate into Google Sheets — produced delays, copy errors and no reproducibility. A missed or failed run went unnoticed, and a new report had to be built from scratch.

Task

I needed to replace the manual export with a reproducible, idempotent pipeline: data reaches the sink on schedule without hand-holding, failures are visible immediately, and a new report is added from a shared template instead of from zero.

Frequently asked

Why is a report a DAG and not a script?

A DAG gives versioning, scheduling, retries and run metrics out of the box; a manual SQL client → copy into Sheets leaves none of those traces.

What does the DQ validation check?

The result header, non-negative revenue and orders, and an empty result set as a distinct NoDataError — all before the data reaches the sink.

How is observability wired?

Every successful run writes a row to dag_metrics (status, duration_s, rows_written, logical_date); failures land in on_failure_callback. scripts/metrics_report.py aggregates success rate and p95.

Does it run without external APIs?

Yes: in dev mode AIRFLOW_CFG_sales_report_output=file writes CSV to data/out/, and Google Sheets needs a real service account.

How is a new report added?

On the shared-module reuse template: a new DAG is assembled from the same config, dq, alerts, metrics and windows, with no logic copied.

Want an analyst who works like this?

Tell me the role and the problems in it — I reply within a day. Need this reasoning applied to your data rather than a hire? That works too.

Send a request