educative.io

Difference between 'unpause' and 'trigger_dag' command

Hi, Whats the difference between the ‘unpause’ and ‘trigger_dag’ command? It seems to me both are command to manually trigger the dag. Is that correct? Can these 2 commands be used interchangeably?


Type your question above this line.

Course: https://www.educative.io/collection/5352985413550080/6113974358638592
Lesson: https://www.educative.io/collection/page/5352985413550080/6113974358638592/5590372009902080

‘trigger_dag’ triggers a DAG run. That is, if the DAG is unpaused, the command will initiate a dag run. However, the DAG state is paused by default. If that is the case, DAG will not run even if you use the ‘trigger_dag’ command. It is imperative to unpause the DAG before triggering the tag run via ‘trigger_dag’.