Airflow Summit 2025 将于 10 月 07-09 日举行。立即注册抢购早鸟票!

airflow.example_dags.example_python_operator

演示如何使用经典的 Python Operator 原生执行 Python 函数并在虚拟环境中执行的示例 DAG。

属性

log

PATH_TO_PYTHON_BINARY

函数

print_context([ds])

打印 Airflow 上下文以及上下文中的 ds 变量。

模块内容

airflow.example_dags.example_python_operator.log[source]
airflow.example_dags.example_python_operator.PATH_TO_PYTHON_BINARY = '/usr/local/bin/python'[source]
airflow.example_dags.example_python_operator.print_context(ds=None, **kwargs)[source]

打印 Airflow 上下文以及上下文中的 ds 变量。

此条目有帮助吗?