ZhangZhihui's Blog  

 

from airflow.sdk import DAG, Label, TriggerRule


        # Label is optional here, but it can help identify more complex branches
        branching >> Label(option) >> t >> empty_follow >> join

What does the Label class do?

 

What Label does

Label lets you place text labels on edges between tasks in the Airflow Graph View.

It does not affect scheduling, execution, dependencies, or logic — it is purely a visual annotation.

 

1

 

posted on 2025-12-11 11:48  ZhangZhihuiAAA  阅读(4)  评论(0)    收藏  举报