Skip to content
GoldNEW 5 min read · Assets

Assets: scheduling on data

Start a DAG when the data it needs has been updated, instead of at a guessed time.

Pipelines in production · Airflow · Gold · Data-aware pipelines, lesson 1 of 2

Read first: Sensors and deferrable operators · Schedules and logical dates (skip if you know them)

In plain words first

Rather than checking the letterbox every hour, you ask the postman to ring the bell when a letter arrives. You act when there is something to act on.

An asset is the letter: a piece of data a tasktask: One step of a DAG, such as running a query or calling an API. Each run of a task for one date is a task instance. Learn more → updates. A DAGDAG: A pipeline in Airflow: a set of tasks and the order they run in, defined in a Python file and run on a schedule. Learn more → scheduled on that asset runs when it changes, not at a fixed time.

Unlock the full lesson

You have read the free part. The rest of this advanced lesson:

  • Schedule on data, not on the clock
  • Several assets
  • Asset-first authoring
  • What assets do not do
  • Common mistakes
  • Key takeaways
  • Interview prep with 3 follow-up questions
  • Check yourself: 3 questions

Unlock it with the Complete pass (every advanced problem and lesson) or on its own.

Keep going

Up next · Data-aware pipelines · lesson 2 of 2 · 5 min read
Idempotent pipelines with Spark and Delta
Jobs that a retry, rerun or backfill cannot corrupt, and chains of days that stop at a failure.

Related lessons

Previous: Task groups, setup and teardown

Primary sources: Asset definitions · Data-aware scheduling