
Chris Parmer
November 6, 2026
Building a data pipeline app with Dash
TL;DR
- When you run your own data pipeline, you can build exactly the interface it needs: live progress for every run, checks that hold back bad data and show the rows behind a failure, a diff against the last good run, and a page for every run and every step.
- Coding agents have made that interface the quickest part to build, so a pipeline app made for your data now takes less effort than adapting to a generic platform, with no platform license.
- Open-source tools (DuckDB, dbt Core and Parquet) cover the data work, and a Dash app ties them together on Plotly Cloud or behind your firewall on Dash Enterprise.
- The same app can serve AI agents over MCP, so they can start a run, read why one was held back, and query the results.
- This post tours an app we built as a reference for what's possible, a year of hourly power demand for 14 US grids joined to NOAA weather, built in one session with Claude Code. The prompt is at the end.
Data pipelines often run in the dark: a scheduler starts a job, a log fills up, and a status turns green or red. We've been building custom interfaces on top of ours with Dash, and we love the control and visibility it gives us. We know our data best, so we can build interfaces made for that data, rather than working inside a generic data platform's UI, which can feel bloated.
With coding agents and Dash, building the control panels and monitoring views that run and watch a pipeline is now quick. The pipeline itself runs in the background inside the app, using open-source tools like DuckDB and dbt, which keeps it simple and inexpensive to run.
This post is a quick tour of a demo app we built in about an hour with Claude Code and Dash.

What we built
The example pipeline answers a question energy analysts ask all the time: how much does the weather move power demand in each US grid? It downloads the U.S. Energy Information Administration's EIA-930 hourly demand files and NOAA's hourly weather observations for 2024, lands them as Parquet, and builds six dbt models on DuckDB that end in three tables the app charts.

The whole thing is about 2,300 lines of Python and SQL. A full run takes about 3 seconds, or about 9 seconds when it downloads the source files again (timed on a 4-vCPU cloud container).
The tour
A live view of every run
The pipeline is drawn as a DAG, and each step is a card with a progress bar, its row count, its test results and its timing. Progress streams in with Dash 4.5's streaming callbacks: the pipeline publishes each event to shared storage and every open tab picks it up, so a run started from the API or by an agent animates the same way as one started with the button.
Checks that hold back bad data
Every run runs 11 dbt tests and eight Python checks. If any of them fails, nothing is published and the last good tables stay as they were. Each check also records the rows behind its result, so a failure points at the cause. When we turned off the spike filter, one check failed and listed Florida Power & Light's 32,218 MW hour on February 1, 2024 among the grids that broke the rule.

Diffs and schema changes
Before publishing, the app compares every table with the last published run, matched by key, and lists rows added, removed and changed, with before and after values sorted by the size of the change. It also flags schema changes in the source files, like EIA splitting its solar, wind and hydro columns in July 2024 (30 columns added, nine removed).

A page for every run and every step
Every run has a URL with its duration, rows in and out, checks, diff and full log, and every step of every run has its own URL too. A link to the exact step that failed can go in Slack or a ticket, and whoever opens it lands on the evidence.

Built for agents
Each run and step page has a "Copy for your agent" button with a Markdown report: what failed, the query and rows behind it, what changed, the relevant log lines, which file holds the code and the command to rerun it. The same reports are MCP tools (list_runs, get_run, get_step, query_lake), so Claude or another agent can connect to the app and work out on its own why a run was held back.
What's underneath
- pipeline.py: the pipeline as plain Python with no Dash in it. The app, a REST API, the MCP tools and the command line all call the same functions, and every run records which one started it.
- dbt and DuckDB: dbt Core with the dbt-duckdb adapter, with every model written as a Parquet file.
- quality.py: about 160 lines of checks and diffs, in the spirit of Great Expectations, Soda or pandera, any of which would fit in the same place.
- Storage: a folder of Parquet files. On Plotly Cloud it sits on a Persistent Filesystem that other apps can read, and on Dash Enterprise it runs behind your firewall. The publish step can also load the results into a warehouse such as BigQuery.
There's no license for any of it, and scheduling is whatever can send POST /api/runs on a timer, including an orchestrator you already run.
Long-running pipelines and request timeouts
Web servers stop a request that runs too long, usually after 30 or 60 seconds, and Dash apps on Plotly Cloud and Dash Enterprise sit behind servers like that. A pipeline that takes 10 minutes can't run inside a callback. The fix is to never make a request wait for the pipeline:
- Run the work outside the request. The Run button, POST /api/runs and the run_pipeline MCP tool all start the pipeline in a background thread and return a run id right away, so no request lasts more than a moment. The pipeline can then take as long as it needs.
- Stream progress, don't wait for it. The live page is a Dash 4.5 streaming callback subscribed to shared storage. Dash sends a keepalive line every 15 seconds when a stream is quiet (stream_keepalive_interval), so proxies that close idle connections leave it open. We tested it locally under gunicorn with sync workers (the server Plotly Cloud runs Dash apps on) and a 30-second worker timeout: a page held its stream open for 78 seconds and still showed a run started from the API live, with no worker timeouts.
- WebSockets are an option, not a requirement. Both transports have a keep-open mechanism. With Dash(backend="fastapi", websocket_callbacks=True), streams share one WebSocket instead of HTTP, Plotly Cloud configures it automatically, and the connection lasts as long as a tab is connected, until a configurable idle timeout (websocket_inactivity_timeout, five minutes by default). That changes how updates travel, not how long a single piece of work can block, so the pipeline should still run outside the callback.
- Use a separate worker for long or critical jobs. A thread inside the web process stops if that process restarts, for example on a redeploy. For pipelines that run for many minutes, run them in a separate process: Dash's background callbacks with a Celery worker and Redis on Dash Enterprise, a worker process in the app's Procfile, or an orchestrator you already use, calling the app's run API. Keep the run state and history on a persistent filesystem or in Redis, so the app can show runs that a different process started.
What it caught while we built it
- A bug in our own model. We clamped "other" generation at zero, but in California it goes negative when batteries charge, so fuel totals came out up to 6.4% too high in a month. A check failed and nothing was published until we fixed it.
- Glitches in EIA's data. A few hours of bad readings survive even in EIA's cleaned series, such as Arizona Public Service jumping from 3,863 MW to 8,877 MW on January 23, 2024.
- A typo in the source. The schema diff showed a new EIA column spelled "Solar witho Integrated Battery Storage".
- Numbers that changed between identical runs. Daily mean temperatures differed by 0.1 °F because parallel float sums add up in a different order each time. The diff flagged it, and averaging integers fixed it.
The prompt
We built this with Claude Code. This prompt gets you most of the way, and we added the rest over about a dozen follow-ups ("now give every step its own page", "make the logs light", and so on).

Build a Dash 4.5 app that runs and monitors a data pipeline, using DuckDB, dbt and Parquet files, on a year of hourly EIA-930 power demand for 14 US grids joined to NOAA weather.- Keep the pipeline in its own pipeline.py, with no Dash, and run it in a background thread.- Stream progress live with a streaming callback and shared storage: a DAG of every step with progress bars, row counts, timings and a live log.- Run dbt tests and Python data checks on every run, and only publish if they all pass. Show the rows behind any failed check.- Diff every table against the last published run, and flag schema changes.- Give every run and every step of a run its own page and URL, with stats, a timeline, checks, the diff and its logs.- Add a "Copy for your agent" summary on each page, a REST API, and MCP tools (list_runs, get_run, get_step, query_lake) so an AI agent can debug a run.
Swap in your own sources, and ask for the pages and checks your team actually needs.
Summary
With DuckDB and dbt doing the data work, the part an all-in-one platform mostly sells you is the interface, and coding agents have made that the cheapest part to build. A Dash app built for your pipeline shows what a generic UI can't: the rows behind a failure, what changed since the last good run, and a page for every step that a person or an agent can open. It costs nothing beyond the machine it runs on, and you can change any of it with another prompt.