Posts

Showing posts with the label airflow decorators

Apache Airflow Taskflow API | Airflow Decorators

  Hello Data Pros, welcome back to another episode of our Apache Airflow series! Today,  we're  taking a deep dive into the world of Task flow API!   The Task flow API was introduced to Airflow, starting from version 2.0, aiming to simplify the  dag  authoring experience by significantly reducing the number of code lines needed by developers! this also makes the code more modular, understandable and easily maintainable!   The  Taskflow  API was built based on the concept of Python decorators!  So  to understand  Taskflow  API, you first need to know the basics of decorators.   Think of a decorator as a special function that takes another function as its input and returns a modified version of that original function.   It's  like wrapping a gift: the decorator adds extra features to the original function.   Decorator is applied using the @ symbol, above a function definition.   In our case...