Replies: 2 comments
|
no a hack would be to have a "copy paste" of the dag , maybe without scheduling for this manual triggering for i in ["","manual"]:
schedule = "* * * * *" if i == "" else None
dag_id = "super_dag" if i == "" else "super_dag_"+i
With Dag(schedule=schedule,dag_id=dag_id,...) |
|
@raphaelauv is right that the scheduler will not touch a paused DAG, and right that no config changes it. Those filters are hardcoded with no conf lookup: in 3.1.3, airflow dags test <dag_id>I tested this on 3.1.3. With Two caveats before you lean on it. This is not a documented guarantee. The command is supported as a debugging tool, and the 3.1.3 debug docs do not mention paused DAGs at all, so treat running-while-paused as behavior that could change. It also needs a shell where the dags folder and the metadata DB config both live, so on a managed service like MWAA or Composer the subcommand may not be exposed to you. Two other things worth knowing either way. If the reason for pausing is only to stop it running on a schedule, then pause is the wrong lever. One last note if you use the UI: when a DAG is paused the trigger dialog shows "Unpause on trigger" and that box is checked by default, so triggering from the UI unpauses unless you uncheck it. |
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to manually trigger and run a DAG without enabling/unpausing it?
Is there any config to implement that?
Airflow version: 3.1.3
All reactions