Skip to content

Instantly share code, notes, and snippets.

@raycarter
raycarter / branch_trigger_dyn_mapping.py
Last active July 5, 2024 11:44
demo of the problem in combination of branch and dynamic task mapping in Apache Airflow 2.9.2
from airflow import DAG
from airflow.operators.empty import EmptyOperator
from airflow.operators.python import BranchPythonOperator, PythonOperator
from airflow.models.param import Param
from airflow.utils.trigger_rule import TriggerRule
import pendulum
import time
default_args = {