Dynamic Task Mapping
Create multiple airflow tasks based on the output of previous task
Dynamic Task Mapping is the most awaited feature of Apache Airflow. I was waiting for it from 2019 when I started to use Apache Airflow.
The general idea is this let's say you have 3 tasks A -> B -> C. Assuming A reads a bunch of files to be processed by B, and the processing is independent of each other, we want Airflow to spin up tasks B1, B2, B3... depending on output of A
From the looks of it, it might look like a simple feature but since the DAGs and tasks are generated before the tasks are executed achieving this during Dag runtime was a problem.
But, not after Airflow introduced Dynamic Task Mapping in 2.3
Dynamic Task Mapping
More documentation and example here:
PreviousCan Next Scheduled Run Automatically Re-Run failed Task?NextKubernetesPodOperator vs. KubernetesExecutor
Last updated