airflow.example_dags.example_python_operator

範例 DAG 示範如何使用經典 Python operators,以原生方式以及在虛擬環境中執行 Python 函數。

模組內容

函數

print_context([ds])

從上下文中印出 Airflow 上下文和 ds 變數。

屬性

log

PATH_TO_PYTHON_BINARY

airflow.example_dags.example_python_operator.log[source]
airflow.example_dags.example_python_operator.PATH_TO_PYTHON_BINARY[source]
airflow.example_dags.example_python_operator.print_context(ds=None, **kwargs)[source]

從上下文中印出 Airflow 上下文和 ds 變數。

此條目是否有幫助?