WEBINAR

Writing Functional DAGs with Decorators

Recorded On June 28, 2022

  • Kenten Danas

In this webinar, we walk participants through the process of using decorators to define tasks in your DAGs. Introduced as part of the TaskFlow API in Airflow 2.0, decorators are an alternative DAG authoring experience to the use of traditional operators. Using decorators results in clean and concise DAGs free of some of the boilerplate code that is required by traditional operators.

This webinar shows you everything you need to know to start using decorators in writing your DAGs, and answers questions like:

  • What decorators are available?
  • Why use decorators?
  • What value do decorators provide?
  • What’s the difference between using decorators and traditional operators?
  • Can you write “hybrid” DAGs with both decorators and traditional operators?
  • How do you define dependencies and pass data between tasks using decorators?
  • What decorator-related features are currently in development?

All of the sample code shown in this webinar can be found in this repo and you can find more information in our Introduction to the TaskFlow API and Airflow decorators guide.

See More Resources

Monitor Your DAGs with Airflow Notifications

Streamlining Data Pipelines with Sophi: An Airflow Journey

Efficient data quality checks with Airflow 2.7

How Grindr uses Airflow to monitor and optimize Snowflake usage

Try Astro for Free for 14 Days

Sign up with your business email and get up to $500 in free credits.

Get Started

Build, run, & observe your data workflows. All in one place.

Build, run, & observe
your data workflows.
All in one place.

Try Astro today and get up to $500 in free credits during your 14-day trial.