On paper, DataCorp now has all the pieces of its processing: ingestion scripts, SQL models with their tests, micro-batches for stock levels and the clickstream. But a piece does not run by itself. Someone has to launch the extraction at 01:15, wait for it to finish before transforming, retry if the replica does not respond, hold back publication if a test fails, raise an alert if the load has not finished by 06:00 and make it possible to repeat last Tuesday's load without touching the others.

That "someone" is the orchestrator: the component that coordinates the execution of data processes. It is one of the six cross-cutting layers of lesson 01-03 and, in DataCorp's starting situation, it was empty: a cron job filled it. In this lesson we will see why that is not enough, what functions an orchestrator provides, which tools exist and how DataCorp's nightly load is written, task by task. ADR-012 will record the choice.

Why cron is not enough

cron is the task scheduler of Unix systems: it runs a command at the specified time. DataCorp's current load is this:

# m  h  dom mon dow  command
  0  2  *   *   *    /opt/scripts/extract_sales.sh
  0  4  *   *   *    /opt/scripts/calculate_reports.sh

The second line starts at 04:00 because "the first one usually finishes before then". That "usually" sums up the problem:

Need What cron does Consequence at DataCorp
Dependencies None: it only knows about times If the extraction runs long, the reports are calculated with half-loaded data
Failures It neither retries nor notices A 30-second network outage leaves the day without data
Alerts At most, an email nobody reads Failures are discovered by Laura at 09:00
Reruns You have to log in to the server and launch by hand Repeating a past load is a manual, risky job
Visibility Scattered log files Nobody knows what ran or how long it took
Overlaps It launches even if the previous run is still going Two processes writing at the same time
History It keeps nothing There is no way of knowing whether the load is getting slower

Cron answers "when?". A pipeline also needs "after what?", "what if it fails?" and "what happened?".

What an orchestrator does

An orchestrator does not process data: it decides what runs, when and in what order, and delegates the work to other systems (the analytical engine, a script, a service). Its functions:

Function Description
Dependencies A task starts only when the previous ones have finished successfully
Scheduling It launches each flow according to a calendar or an event
Parameterization It passes each run its date, so that it is reproducible
Retries and timeouts It repeats what fails for transient reasons and cuts off what hangs
Alerts It notifies people when something fails or is delayed
Backfill It runs the flow for a range of past dates
Concurrency control It limits how many runs and tasks execute at the same time
Observability It stores the status, duration and log of each task, and shows them in an interface

The directed acyclic graph (DAG)

A workflow is described as a directed acyclic graph (DAG):

  • Graph: a set of tasks (nodes) joined by dependencies (arrows).
  • Directed: each arrow has a direction: "B depends on A".
  • Acyclic: there are no cycles. If A depended on B and B on A, neither could start.

A task is a unit of work with a clear outcome: it ends well or it ends badly. From the graph you can work out the order and also the parallelism: two tasks with no dependency between them can run at the same time.

We have already seen a DAG in this module: the graph of models in lesson 04-02. The difference is one of level. That one orders SQL transformations inside the engine; the orchestrator's orders the whole flow, from extraction to publication, and treats the execution of the models as one or more of its tasks.

Scheduling, execution date and idempotency

Every time the orchestrator launches a DAG it creates a run, and associates it with a point or interval in time: its execution date (or logical date). That date is not "now": it is the period the run corresponds to, and it is handed to the tasks as a parameter.

The distinction is the foundation of everything else:

Clock date Execution date
What it is The moment when the task actually runs The period of data it has to process
On a retry at 09:00 It changes It does not change
On a backfill of last week It is today It is the days of last week

It is the same principle we applied in lessons 04-01 and 04-02 when we required --load-date as an argument instead of using the system date. Now you can see what it is for: the orchestrator is the one that supplies that argument. And a task that is parameterized by date and idempotent can be retried, repeated and backfilled without fear. Without those two properties, the orchestrator's functions are dangerous rather than useful.

Retries, timeouts and alerts

Retries. Many failures are transient: a network outage, an overloaded service. The orchestrator repeats the task a limited number of times, waiting between attempts. The usual approach is exponential backoff: 5 minutes, then 10, then 20. Giving it time is what solves transient failures; retrying instantly just hammers a system that has not yet recovered.

Not everything should be retried. A quality test that fails will fail again: the data is the same. Retrying makes sense for tasks that depend on external systems, not for those that judge data.

Timeouts. A task that normally takes 10 minutes and has been running for 2 hours is not working: it is hung. The timeout cuts it off and marks it as failed, which triggers retries and alerts. Without it, a hung process silently blocks the whole night.

Alerts. When a task exhausts its retries, the orchestrator sends a notification through the channel the team really looks at. A good alert says what failed, for which date and where the log is. And you only alert on what requires action: a channel that reports everything ends up muted.

Backfills and reruns

  • Rerun: repeating a specific run or part of it. If publish_consumption failed, the cause is fixed and that task and the later ones are relaunched; the extractions, which finished successfully, are not repeated.
  • Backfill: running the DAG for a range of past dates. It is used when a flow goes live (loading the history), after fixing a logic error or after several days of outage.
# Backfill of the first week of November (the syntax varies by version)
airflow dags backfill nightly_load_sales \
    --start-date 2026-11-01 --end-date 2026-11-07

The orchestrator creates seven runs, each with its date, and launches them while respecting the concurrency limit. With cron, this would be seven manual runs editing a date in a script.

Sensors and event triggers

Not everything starts at a fixed time. Two mechanisms make it possible to react to what happens:

  • Sensor: a task that waits for a condition to be met (a file existing, another flow finishing) by checking it periodically, up to a maximum time.
  • Event trigger: the flow starts when something happens (a file arrives, a dataset is updated), with no time-based schedule.

At DataCorp, the ERP inventory snapshot arrives by SFTP "around 03:00". Instead of assuming that it is there at 03:00, the flow starts with a sensor that waits for the day's file until 05:00; if it does not arrive, it fails and raises an alert. It is the arrival check that lesson 03-03 asked for, done by the orchestrator.

Service level agreements (SLAs)

An SLA (service level agreement) is, in this context, a commitment about when the data must be available. RQ-04 is one: sales D+1 before 07:00. The orchestrator makes it possible to monitor it, because there is one kind of failure that no task reports: delay. A load that does not fail, but is going to finish at 08:30, breaches the requirement without generating a single error.

DataCorp distinguishes two times:

Time What happens if it is exceeded
Internal target 06:00 Alert to the data team: there is an hour left to act
Commitment (RQ-04, DQ-06) 07:00 Breach: the users are informed and it is recorded

The margin between the two is what turns an alert into something useful: reporting at 07:00 that the 07:00 deadline has been missed is of no use to anyone.

Task-based and data asset-based orchestration

There are two ways of thinking about a flow:

Task-oriented Data asset-oriented
You declare Which steps run and in what order Which datasets (assets) must exist and which ones they depend on
Natural question "Did the task run?" "Is this table up to date?"
Dependencies Between tasks Between data; the execution order is derived
Lineage It has to be added It is a consequence of the model
Representative Apache Airflow (in its classic use) Dagster; dbt, within the transformations

The two approaches are converging: task orchestrators have incorporated the notion of an asset (one DAG can declare which data it produces and another can start when it is updated), and asset orchestrators allow tasks to be defined. For DataCorp, the combination of a task orchestrator with dbt, which already reasons in terms of assets inside the engine, covers both worlds.

Tools

Tool Approach Flow definition Strengths Weaknesses
Apache Airflow Tasks (with asset support) Python De facto standard; huge catalog of integrations; plenty of skilled people; managed services on the three big clouds Deploying and operating it yourself is laborious; awkward local testing
Dagster Data assets Python Built-in lineage and data checks; good development and testing environment Smaller community; fewer managed offerings
Prefect Tasks, very dynamic Python, with little additional code Easy to get started; flows that change at run time Smaller ecosystem
Cloud-native services Tasks, by configuration Graphical interface, JSON or YAML No servers; direct integration with the provider's other services Vendor lock-in; logic that is hard to version and test

The managed Airflow services (Amazon MWAA, Google Cloud Composer and Azure's equivalent offering) run open-source Airflow: the provider maintains the infrastructure and the team only writes DAGs.

Example: the DAG for DataCorp's nightly load

The nightly_load_sales flow takes the PostgreSQL data from the replica to consumption.daily_net_sales:

graph LR
    E1["extract_orders"] --> V["validate_ingestion"]
    E2["extract_order_lines"] --> V
    E3["extract_customers"] --> V
    E4["extract_products"] --> V
    V --> T["transform_cleansed"]
    T --> TD["tests_cleansed"]
    TD --> P["publish_consumption"]
    P --> R["refresh_daily_net_sales"]
Task What it does Rules If it fails
extract_<entity> (4, in parallel) Ingestion script: replica → raw zone, load_date partition — It retries 3 times
validate_ingestion Checks arrival, the contract's schema and volume DQ-07 It stops the flow
transform_cleansed dbt run of the models in the cleansed layer — It retries
tests_cleansed dbt test of the cleansed layer DQ-01 to DQ-05, DQ-09 to DQ-12 It stops the flow; it is not retried
publish_consumption dbt build of the dimensions and fact_sales, with their tests DQ-08 It stops the flow
refresh_daily_net_sales dbt build of the metrics table — It retries

The DAG, written for Apache Airflow:

"""nightly_load_sales: PostgreSQL (replica) -> raw -> cleansed -> consumption.
It must finish before 06:00 (internal target) to meet RQ-04 (07:00)."""
import os
from datetime import timedelta

import pendulum
import requests
from airflow import DAG
from airflow.operators.bash import BashOperator   # the import path varies by version

# Load date: the day on which the run is launched, in Spanish mainland time.
# It is a template: Airflow replaces it with the value for each run.
LOAD_DATE = "{{ data_interval_end.in_timezone('Europe/Madrid').strftime('%Y-%m-%d') }}"

REPO = "/opt/datacorp-data"
DBT = f"cd {REPO}/transformations && dbt"
OPTIONS = "--target pro --vars 'load_date: " + LOAD_DATE + "'"


def notify_failure(context):
    """Called when a task exhausts its retries: it posts to #data-alerts."""
    task = context["task_instance"]
    text = (f"FAILURE in {task.dag_id}.{task.task_id} "
            f"(attempt {task.try_number}). Log: {task.log_url}")
    # The channel's address is a secret: it comes from the environment, it is not in the code
    requests.post(os.environ["DATACORP_WEBHOOK_ALERTAS"], json={"text": text}, timeout=10)


arguments = {
    "owner": "data-team",
    "retries": 3,                                  # up to 3 retries per task
    "retry_delay": timedelta(minutes=5),           # initial wait
    "retry_exponential_backoff": True,             # 5, 10, 20 minutes
    "execution_timeout": timedelta(minutes=45),    # timeout per task
    "on_failure_callback": notify_failure,
}

with DAG(
    dag_id="nightly_load_sales",
    schedule="15 1 * * *",                         # every day at 01:15
    start_date=pendulum.datetime(2026, 12, 1, tz="Europe/Madrid"),
    catchup=False,                                 # do not launch the missed runs automatically
    max_active_runs=1,                             # never two runs at the same time
    dagrun_timeout=timedelta(hours=4, minutes=45), # 01:15 + 4:45 = 06:00
    default_args=arguments,
    tags=["sales", "nightly"],
) as dag:

    # Four independent extractions: they run in parallel
    extractions = [
        BashOperator(
            task_id=f"extract_{entity}",
            bash_command=(f"python {REPO}/ingestion/extract_postgres.py "
                          f"--entity {entity} --load-date " + LOAD_DATE),
        )
        for entity in ["orders", "order_lines", "customers", "products"]
    ]

    validate_ingestion = BashOperator(
        task_id="validate_ingestion",
        bash_command=f"python {REPO}/quality/validate_ingestion.py --source postgres "
                     "--load-date " + LOAD_DATE,
        retries=0,                                 # it judges data: retrying changes nothing
    )

    transform_cleansed = BashOperator(
        task_id="transform_cleansed",
        bash_command=f"{DBT} run --select cleansed {OPTIONS}",
    )

    tests_cleansed = BashOperator(
        task_id="tests_cleansed",
        bash_command=f"{DBT} test --select cleansed {OPTIONS}",
        retries=0,
    )

    publish_consumption = BashOperator(
        task_id="publish_consumption",
        bash_command=f"{DBT} build --select dim_customer dim_product fact_sales {OPTIONS}",
        retries=0,
    )

    refresh_daily_net_sales = BashOperator(
        task_id="refresh_daily_net_sales",
        bash_command=f"{DBT} build --select daily_net_sales {OPTIONS}",
    )

    # Dependencies: >> means "followed by"
    (extractions >> validate_ingestion >> transform_cleansed >> tests_cleansed
        >> publish_consumption >> refresh_daily_net_sales)

The DAG, step by step

  • schedule="15 1 * * *" uses cron syntax (minute, hour, day, month, day of the week), interpreted in the time zone of start_date: 01:15 Spanish mainland time all year round, fifteen minutes after the time guaranteed by the orders data contract.
  • LOAD_DATE is a template. Airflow stores timestamps in UTC, and 01:15 on a summer day in Madrid is 23:15 on the previous day in UTC; that is why it is converted to Europe/Madrid before taking the date. It is the time zone mistake of lesson 03-05, now in the orchestrator. Each script derives its interval from it: the load for the 18th extracts the orders of the 17th.
  • default_args applies to all the tasks; validate_ingestion, tests_cleansed and publish_consumption override it with retries=0, because they judge data.
  • max_active_runs=1 prevents a run from starting if the previous one has not finished.
  • dagrun_timeout marks the run as failed if it has not finished by 06:00: it is how the internal target is monitored.
  • BashOperator runs a command. The DAG contains no data logic: it only calls the scripts in ingestion/, quality/validate_ingestion.py and dbt.
  • extractions >> validate_ingestion: a list on the left of >> means that the task on the right waits for all of them.
  • If tests_cleansed fails, the later tasks do not run: consumption keeps yesterday's data, which is correct though old, and the team receives the alert. It is the "before publishing" check of lesson 03-03.

A typical duration is about 40 minutes: the load finishes around 01:55, with four hours of margin over the internal target. That margin is what absorbs retries and manual reruns.

The other daily loads follow the same pattern, each in its own DAG: nightly_load_support (02:00), nightly_load_inventory (03:00, with a sensor for the arrival of the file) and nightly_load_marketing (04:00).

A second flow: stock levels every 10 minutes

The stock levels micro-batch (ADR-010) is another DAG, with different parameters:

with DAG(
    dag_id="frequent_stock",
    schedule="*/10 * * * *",                       # every 10 minutes
    start_date=pendulum.datetime(2026, 12, 1, tz="Europe/Madrid"),
    catchup=False,
    max_active_runs=1,                             # if a run takes long, the next one waits
    default_args={
        "retries": 1,
        "retry_delay": timedelta(seconds=30),
        "execution_timeout": timedelta(minutes=3), # the limit set by ADR-010
        "on_failure_callback": notify_failure,
    },
) as dag_stock:

    RUN_TIMESTAMP = "{{ data_interval_end.isoformat() }}"

    extract = BashOperator(
        task_id="extract_stock",                   # ERP API -> raw (erp/stock/)
        bash_command=f"python {REPO}/ingestion/extract_stock.py --timestamp " + RUN_TIMESTAMP,
    )
    load = BashOperator(
        task_id="load_current_stock",              # DuckDB: raw -> consumption.current_stock
        bash_command=f"python {REPO}/micro_batches/load_stock.py --timestamp " + RUN_TIMESTAMP,
    )
    alert = BashOperator(
        task_id="evaluate_stock_alerts",           # UC-03: products below the threshold
        bash_command=f"python {REPO}/micro_batches/stock_alerts.py --timestamp " + RUN_TIMESTAMP,
    )
    extract >> load >> alert

The differences from the nightly flow stem from its nature:

Parameter Nightly Stock levels Why
Retries 3, with a wait of 5 to 20 min 1, after 30 s In 10 minutes the next run arrives: insisting does not pay off
Timeout 45 min per task 3 min The worst case must stay below 15 minutes
Backfill Useful Pointless Only the current state matters; the history comes from the daily snapshot
Alert Every failure Best to alert after two failures in a row An isolated failure fixes itself

The clickstream has a third DAG, clickstream_micro_batches, scheduled at minutes 5, 20, 35 and 50 (5,20,35,50 * * * *).

Best practices

  • Small, single-purpose tasks. If one task extracts, transforms and loads, a failure in the load forces you to repeat the extraction. When they are separate, you resume from the point of failure.
  • Idempotent tasks parameterized by date. It is the condition for retries and backfills to be safe.
  • No heavy logic in the orchestrator. The orchestrator coordinates; the work is done by the analytical engine and the scripts. Loading a 2 GB file into the memory of an orchestrator process can bring down the scheduling of every flow.
  • Secrets outside the code. Passwords and private addresses are stored in the provider's secrets manager and reach the tasks at run time. The repository contains no credentials (ADR-006); the tasks run under the svc_load service account.
  • DAGs are code. They live in datacorp-data/orchestration/, go through a pull request and continuous integration (at the very least, checking that they load without errors) and are deployed automatically.
  • Separate environments. A development environment, with dev_ schemas and no alerts to the real channel, makes it possible to test a DAG before it touches production.
  • Self-explanatory names. extract_orders says more than task_1 when an alert arrives in the small hours.
  • One owner per flow. Every alert must have a clear recipient.

Lineage emission

Lesson 03-02 left a decision pending: evaluating OpenLineage when choosing the orchestrator. OpenLineage is an open standard that lets tools emit, on every run, events describing which task ran, which datasets it read and which ones it wrote.

The orchestrator is the natural place to emit them, because it sees the whole flow. Airflow has an official integration that generates those events without touching the DAGs, and dbt contributes the detail of the models. The combination completes DataCorp's lineage for the stretch that was missing:

Stretch Who provides the lineage
Source → raw zone Orchestrator (ingestion tasks), via OpenLineage
Raw → cleansed → consumption dbt (references between models)
Consumption → dashboards Analysis tool (Module 5)

DataCorp will enable the emission and store the events as JSON files in object storage. Deploying a dedicated service to explore them is deferred: it is one more component to operate, and for now the lineage generated by dbt is enough.

ADR-012: DataCorp's orchestrator

ADR-012: Orchestration with Apache Airflow as a managed service
Status: accepted            Date: 2026-12-03

CONTEXT
The current scheduling is a cron job with no dependencies, retries or
alerts (about 6 outages a year). Four daily loads and two micro-batches
(ADR-010) have to be coordinated, RQ-04 guaranteed, and all of it done
with two people (RQ-13). ADR-003 establishes the preference for managed
services.

DECISION
1. Orchestrator: Apache Airflow, contracted as a managed service from the
   cloud provider.
2. One DAG per flow, in datacorp-data/orchestration: nightly_load_sales
   (01:15), nightly_load_support (02:00), nightly_load_inventory
   (03:00), nightly_load_marketing (04:00), frequent_stock (every
   10 min) and clickstream_micro_batches (minutes 5, 20, 35 and 50).
3. Every task receives its execution date as a parameter and is idempotent.
4. Internal target for the nightly loads: 06:00. Commitment: 07:00.
5. The DAGs contain no data logic: they invoke scripts, DuckDB and dbt.
6. Alerts to the #data-alerts channel; secrets in the provider's manager.
7. Lineage emission with OpenLineage is enabled; the events are stored
   as files. A lineage exploration service is deferred.

ALTERNATIVES CONSIDERED
A. Keeping cron. Rejected: it is the origin of the problem.
B. Airflow deployed and operated by the team. Rejected: it breaches RQ-13.
C. Dagster or Prefect in their cloud service. Technically valid;
   rejected because they add one more vendor and because fewer skilled
   people are available. The asset-based approach is already provided
   by dbt.
D. The provider's native workflow service. Rejected: logic that is hard to
   version and test, and greater vendor lock-in.

CONSEQUENCES
Positive: dependencies, retries, alerts, backfills and visibility from
day one; DAGs portable to any other Airflow.
Negative: the managed service has a fixed monthly cost, whether it is
used a lot or a little (lesson 07-04); Airflow requires learning its
concepts of dates and intervals.
Follow-up work: migrate the cron scripts; retire cron; define the
development environment.

Common Mistakes and Tips

  • Chaining by time instead of by dependencies. "It will have finished by 04:00" is cron's flaw carried over to the orchestrator. Declare the dependency.
  • Using the clock date inside the tasks. It breaks retries and backfills. Always use the execution date.
  • Confusing the execution date with the day of the data. The load that runs on the 18th processes the orders of the 17th, and the internal timestamps are in UTC. Write the conversion once, in one place, and check it in summer and in winter.
  • Leaving catchup enabled by accident. When a DAG with an old start date is deployed, the orchestrator launches all the missed runs at once.
  • Retrying the quality tasks. Three retries of a failing test delay the alert by 35 minutes and do not change the result.
  • One giant task. It prevents resuming, parallelizing and knowing what failed.
  • Processing data inside the orchestrator. It overloads it and affects every flow.
  • Alerts with no recipient, or too many of them. Both lead to the same thing: nobody reacts.
  • Tip: test the failure. Deliberately cause an error in each task, in development, and check what stops, what is retried and which alert arrives.
  • Tip: look at the duration of the loads every week. A load that grows by two minutes a month never fails, until the day it no longer fits in the window.

Exercises

Exercise 1: Reading a DAG

With the nightly_load_sales DAG, answer:

  1. The replica does not respond for 12 minutes starting at 01:15. What happens?
  2. tests_cleansed detects 4 orders with a duplicate order_id. Which tasks run afterwards? What does Laura see at 08:00?
  3. transform_cleansed hangs. When does the team find out?

Exercise 2: Designing a flow

Draw (with a list of tasks and dependencies) the nightly_load_inventory DAG: the ERP CSV file arrives by SFTP around 03:00; it must be stored in raw, converted to Parquet in the cleansed zone translating the SKU into product_id, checked for unmapped SKUs (DQ-11, warning) and loaded into fact_daily_inventory. State which tasks you would retry.

Exercise 3: Schedule expressions

Write the cron expression for: (1) every day at 04:00; (2) every 15 minutes; (3) Mondays at 06:30; (4) minutes 5, 20, 35 and 50 of every hour. Why does the clickstream micro-batch use the fourth and not the second?

Solutions

Exercise 1

  1. The four extractions fail and are retried after 5 minutes (01:20, still no replica) and 10 minutes after that (01:30, now available): they succeed on the second retry. The flow carries on about 15 minutes late and with nobody stepping in. No alert is sent, because the retries were not exhausted.
  2. None. DQ-01 is blocking: tests_cleansed fails (with no retries), publish_consumption and refresh_daily_net_sales do not run and the team receives the alert around 01:40. Laura sees the data from the day before yesterday and, if nobody fixes it before 07:00, DQ-06 is breached and she must be informed. Note: the cleansed layer has indeed been rebuilt with the duplicates; the orchestrator protects the consumption zone, which is the one the users read.
  3. After 45 minutes, when execution_timeout expires; the task is marked as failed and retried. If it hangs on every attempt, the alert arrives once they are exhausted. In the worst case, dagrun_timeout closes the run at 06:00. Without timeouts, nobody would know until the morning.

Exercise 2

wait_for_inventory_file      (sensor: checks the SFTP every 5 min, until 05:00)
        |
copy_to_raw                  (SFTP -> erp/inventory/load_date=...)
        |
validate_ingestion           (header, encoding, 3 warehouses, volume)
        |
cleanse_inventory            (DuckDB: CSV ISO-8859-1 -> Parquet, join with xref_product)
        |
        +--> check_unmapped_skus                 (DQ-11, warning: it does not block)
        |
load_fact_daily_inventory    (dbt build)

The tasks that talk to external systems (copy_to_raw) and the transformation ones are retried; the validation ones are not. The DQ-11 check hangs off in parallel: since its severity is warning, its failure must not prevent the load. Common mistake: starting at a fixed time with no sensor and loading the previous day's file, which was still on the server.

Exercise 3

  1. 0 4 * * *
  2. */15 * * * *
  3. 30 6 * * 1
  4. 5,20,35,50 * * * *

*/15 launches at minutes 0, 15, 30 and 45, just when the collector is closing the file for that quarter of an hour: the micro-batch could find it incomplete or not find it at all. Shifting it by 5 minutes guarantees that the file has already been delivered. A more robust alternative would be a trigger on the arrival of the file.

Conclusion

A scheduler like cron knows when to launch a command, but not what it depends on, what to do if it fails or what happened. An orchestrator models the flow as a directed acyclic graph of tasks and adds scheduling, parameterization by execution date, retries with waits, timeouts, alerts, backfills, sensors, concurrency control and deadline monitoring. All those functions rest on the same property that has run through the module: idempotent tasks that receive their date as a parameter. We have distinguished task-based orchestration from data asset-oriented orchestration, compared Airflow, Dagster, Prefect and the native services, and written DataCorp's flows: nightly_load_sales, which chains extraction, validation, transformation, tests and publication with plenty of margin before 07:00, and frequent_stock, every 10 minutes. ADR-012 adopts Apache Airflow as a managed service and enables lineage emission with OpenLineage.

The orchestrator also gives us something that did not exist before: the duration of each task, night after night. With that measurement in hand we can tackle the last question of the module. The processes work and are coordinated, but are they fast enough? Will the dashboards respond in under five seconds with ten people at once? The next lesson deals with performance optimization, which always starts with measuring.

© Copyright 2026. All rights reserved