Dashboards break in a predictable way: the models rebuild at 05:00, the BI extract refreshes at 05:30, and one Monday the models take 40 minutes. The dashboard refreshes against half-built tables, and the first person to notice is a regional manager. The fix is not a later refresh time; it is putting the refresh after the build and the tests, in one pipeline.
Northbeam's weekly depot KPIs
Northbeam Logistics' analytics engineers (a fictional team) maintain a dbt project with a depot_kpis model family and a Tableau workbook that the depot managers open on Monday mornings. They want the models built and tested, and the workbook refreshed, in that order, every Monday at 05:00.
The pipeline
InsightDataFlow has a node per dbt stage, each with the project path, the target, threads and selectors:
DBT_SEEDloads seed CSVs (reference data such as depots and regions) into the target database.DBT_RUNbuilds the selected models, heredepot_kpis+(the model and everything downstream of it).DBT_TESTruns the tests for the same selection, with a fail-fast option.DBT_DOCS(optional) regenerates the documentation site.
There is also a single DBT node for teams that prefer one step with the full dbt feature set. After the tests, a
TABLEAU node works with Tableau Server or Cloud: the workbook id and an action, here a refresh.

In the list it is category reporting, priority P3, schedule 0 5 * * 1 (Mondays at 05:00). The
generated DAG has one task per node in a straight line, so the Tableau task cannot start until DBT_TEST succeeds.
DBT_RUN and DBT_TEST means you test what you built. If you widen one, widen the other; a refresh gated on tests that did not cover the new model is a gate in name only.Fill in the defaults deliberately
The dbt stage nodes declare sensible-looking defaults that are easy to leave in place by accident:
| Parameter | Default | What to set |
|---|---|---|
| Location name | required | The warehouse data location. Credentials come from the data location, not from Airflow connections. |
| Project path | required | A directory containing dbt_project.yml, present where the pipeline runs. |
| Database type | mysql | Your warehouse's type, on every dbt node. |
| Target | dev | The production target, in the production deploy. |
| Threads (seed, run) | 4 | What your warehouse tolerates at 05:00 on a Monday. |
A pipeline left on target: dev runs perfectly every week and refreshes the dashboard from development tables. The review of
properties.yaml is where this gets caught, so make "which target?" a standing question in it.
What "refreshed" means
The TABLEAU node supports one action, refresh, and needs a workbook id; its Tableau data location holds the server
URL, the personal access token's name and secret, and the site. The refresh call asks Tableau to start an extract refresh and returns as soon
as Tableau accepts it. It does not wait for the extract to finish. So a green Tableau task means "refresh requested", and a refresh that
fails inside Tableau shows up in Tableau's own job history, not in Airflow. Whoever owns the workbook should watch both for the first few
Mondays.
One dbt node or four?
| Stage nodes (seed, run, test, docs) | Single DBT node | |
|---|---|---|
| In Airflow | One task per stage; a failed test is visibly a test failure | One task; you read its log to see which stage failed |
| Gating | The refresh can depend on the test task specifically | The refresh depends on the whole dbt step |
| Configuration | Project path, target and selectors repeated on each node | Set once, with the full dbt feature set |
| Best for | Pipelines where the order of build, test and publish is the point | Teams that already run dbt as one command and want it scheduled |
For this use case the stage nodes win: the whole reason for the pipeline is that the refresh waits for the tests.
What the team gets
- No half-built dashboards. A failed test stops the pipeline before the refresh; managers see last week's figures, not wrong ones.
- One place to look. The order of dbt and BI steps is on one canvas and in one DAG, not split between a dbt scheduler and a BI scheduler.
- The same review as other pipelines. A selector or schedule change is a diff in
properties.yaml.
A test fails on a Monday
A new depot is added to the seed file with a region code that does not exist. DBT_TEST fails on a relationships test, the Tableau task never starts, and the on-call engineer sees exactly which task failed. The depot managers open a dashboard that is a week old but correct. An illustration on made-up data.
Questions analytics engineers ask
Can we keep our existing dbt project?
Yes. The stage nodes point at an existing project directory; InsightDataFlow does not take the project over. Your models, tests and seeds stay in your repository.
Can we test the dbt steps before deploying?
The Test tab on a stage node runs dbt debug and then the stage's own command, and returns dbt's output. It runs from the
InsightDataFlow server, so the project path and the warehouse have to be reachable from there for the test to mean anything.
What if the refresh itself fails?
If Tableau rejects the request (a wrong workbook id, an expired token), the Tableau node reports a failure with Tableau's error, and the step should show as failed. Confirm that on a deliberate bad workbook id in development once. If Tableau accepts the request and the extract fails later, see above: that is in Tableau's job history.
Setting it up
- Register the warehouse and Tableau as data locations.
- Draw Start → DBT_SEED → DBT_RUN → DBT_TEST → TABLEAU → End, and set the same project path and target on the dbt nodes.
- Use the same selector on run and test; turn on fail-fast for the tests.
- Set the workbook id and the refresh action on the Tableau node.
- Generate, read the properties file, deploy to development, trigger once, then deploy to production.
Next: a practical guide to moving hand-written DAGs into the designer.


