blob: fdf99ae4aa65e14dccaa66ce0d009b5545d33608 [file] [log] [blame]
:py:mod:`airflow.example_dags.subdags.subdag`
=============================================
.. py:module:: airflow.example_dags.subdags.subdag
.. autoapi-nested-parse::
Helper function to generate a DAG and operators given some arguments.
Module Contents
---------------
Functions
~~~~~~~~~
.. autoapisummary::
airflow.example_dags.subdags.subdag.subdag
.. py:function:: subdag(parent_dag_name, child_dag_name, args)
Generate a DAG to be used as a subdag.
:param str parent_dag_name: Id of the parent DAG
:param str child_dag_name: Id of the child DAG
:param dict args: Default arguments to provide to the subdag
:return: DAG to use as a subdag
:rtype: airflow.models.DAG