Skip to content

"depends_on" functionality for DAGs #11739

@JavierLopezT

Description

@JavierLopezT

Right now, if you want to execute a DAG after another, you have to use a TriggerDagRunOperator, SubDags... What I propose is a little simpler way of making this happen. It consists of adding a new parameter to the dag called depend_on, so it would be as follow:
with DAG(dag_name, default_args=default_args, depends_on=dag_name_previous_dag):

The parameter depends_on would make schedule_interval optional, so that you can choose just executing the DAG after the previous one finishes its execution or including some scheduled executions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions