Airflow 峰会 2025 将于 10 月 07-09 日举行。立即注册获取早鸟票!

airflow.example_dags.example_branch_operator_decorator

示例 DAG 演示了如何使用分支 TaskFlow API 装饰器。

它展示了如何使用标准 Python @task.branch,以及调用外部 Python 解释器的外部 Python 版本 @task.branch_external_python,以及构建临时 Python 虚拟环境的 @task.branch_virtualenv

属性

PATH_TO_PYTHON_BINARY

run_this_first

模块内容

airflow.example_dags.example_branch_operator_decorator.PATH_TO_PYTHON_BINARY = '/usr/local/bin/python'[源]
airflow.example_dags.example_branch_operator_decorator.run_this_first[源]

此条目有用吗?