airflow.operators.subdag_operator
¶
Module Contents¶
-
class
airflow.operators.subdag_operator.
SubDagOperator
(subdag:DAG, session:Optional[Session]=None, *args, **kwargs)[source]¶ Bases:
airflow.sensors.base_sensor_operator.BaseSensorOperator
This runs a sub dag. By convention, a sub dag’s dag_id should be prefixed by its parent and a dot. As in parent.child.
Although SubDagOperator can occupy a pool/concurrency slot, user can specify the mode=reschedule so that the slot will be released periodically to avoid potential deadlock.
- Parameters
subdag – the DAG object to run as a subdag of the current DAG.
session – sqlalchemy session