Simple play icon Course
Skills Expanded

Build DAGs Using the Taskflow API in Apache Airflow

by Janani Ravi

Enhance your Airflow workflows using the Taskflow API. This course will teach you how to use the Taskflow API to construct DAGs and pass data between tasks.

What you'll learn

Managing and optimizing workflows in Airflow can be challenging without a clear understanding of how to use operators and the Taskflow API effectively. In this course, Build DAGs Using the Taskflow API in Apache Airflow, you’ll gain the ability to create directed acyclic graphs (DAGs) for streamlined data validation, filtering, and passing. First, you’ll set up a simple DAG, with no conditional operations, using Airflow operators for data processing and validation and pass data using XComs. Next, you’ll convert the same DAG to use the Taskflow API using the @task and @dag decorators. You’ll learn how to perform data passing using the “return” keyword, and collect and access the data passed using input arguments. Finally you'll build a more complex DAG which includes conditional branching workflows first using operators and then using the Taskflow API. When you’re finished with this course, you’ll have the skills and knowledge needed to use the Taskflow API to enhance and optimize your workflows efficiently.

About the author

Janani has a Masters degree from Stanford and worked for 7+ years at Google. She was one of the original engineers on Google Docs and holds 4 patents for its real-time collaborative editing framework. After spending years working in tech in the Bay Area, New York, and Singapore at companies such as Microsoft, Google, and Flipkart, Janani finally decided to combine her love for technology with her passion for teaching. She is now the co-founder of Loonycorn, a content studio focused on providing ... more

Ready to upskill? Get started