airflow.example_dags.subdags.subdag

輔助函數,用於產生 DAG 和 operators,並給定一些引數。

模組內容

函數

subdag(parent_dag_name, child_dag_name, args)

產生 DAG 以用作子 DAG。

airflow.example_dags.subdags.subdag.subdag(parent_dag_name, child_dag_name, args)[原始碼]

產生 DAG 以用作子 DAG。

參數
  • parent_dag_name (str) – 父 DAG 的 ID

  • child_dag_name (str) – 子 DAG 的 ID

  • args (dict) – 提供給子 DAG 的預設引數

回傳

要用作子 DAG 的 DAG

回傳類型

airflow.models.dag.DAG

這個條目有幫助嗎?