Skip to main content

How to Trigger a Dag from the Apache Airflow® UI

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

A Dag in Apache Airflow® runs on its schedule, or when you start it yourself. Starting it by hand is called triggering it, and in the UI it takes two clicks: the Trigger button, then the Trigger button of the dialog that opens. That dialog also decides what happens to a paused Dag. This guide triggers a one-task Dag on Airflow 3.4.0.

Prerequisites​

  • Apache Airflow® running, and a Dag in its list. This guide uses hello_trigger, whose only task, greet, prints a line.

Step 1: Open the Dag​

Click Dags in the menu on the left, then the Dag's name:

The hello_trigger Dag page in the Apache Airflow® UI, before any run, with the pause toggle and the Trigger button at the top right.

At the top right are the pause toggle and the Trigger button. The toggle is off: Airflow creates every new Dag paused.

Step 2: Click Trigger​

The Trigger Dag dialog opens:

The Trigger Dag - hello_trigger dialog: Single Run selected over Backfill, the Logical Date, the Dag is paused section with Unpause selected and Drain and Keep paused beside it, an optional Run ID, a Dag Run Note, Configuration JSON and the Trigger button.

From top to bottom:

OptionWhat it does
Single Run"Trigger a single run of this Dag": what you want here
Backfill"Run this Dag for a range of dates": many runs for past periods
Logical DateThe date the run is for. For a hand-started run, now is fine
Dag is pausedOnly shown for a paused Dag. It decides what the run does to the pause
Run ID"Optional - will be generated if not provided"
Dag Run NoteA note attached to the run, for you and your team
Configuration JSONSettings passed to the run. Leave it closed for a Dag that takes none

The three choices under Dag is paused, in the dialog's own words:

ChoiceWhat happens
Unpause"The Dag becomes active: unfinished runs continue and the schedule resumes."
Drain"Unfinished runs continue, but no scheduled runs are created." The Dag pauses again once they finish
Keep paused"New and unfinished runs wait until the Dag is unpaused." Your run won't start

Unpause is selected by default. Keep it if you want the run to happen now and the Dag to stay active.

Step 3: Trigger the Run​

Click Trigger at the bottom of the dialog. A few seconds later, the Dag page shows the result:

The hello_trigger Dag page after the run: Latest Run 2026-12-01 04:28:20 with a green check, the pause toggle switched on, the greet task green in the grid, and the Last Dag Run chart totaling 2.91 seconds.

  • Latest Run has a green check: the run succeeded.
  • The toggle at the top right is on now, because the dialog unpaused the Dag.
  • The grid on the left has one column for the run, and greet is green in it.
  • Last Dag Run took 2.91 seconds in total, including the time the run waited in the queue.

To see what the task printed, click greet in the grid; How to Read a Task Log in the Apache Airflow® UI explains the log page.

Common Mistakes​

MistakeWhat happensDo this instead
Choosing Keep pausedThe run is created but waits until you unpause the DagChoose Unpause, or unpause later
Choosing Backfill for one runYou're asked for a date range and get many runsChoose Single Run
Expecting a paused Dag to stay paused after UnpauseThe toggle is on, and a scheduled Dag starts running on its scheduleChoose Drain to have it paused again afterwards

Troubleshooting​

SymptomLikely causeFix
The run stays queuedThe Dag is paused, or the scheduler isn't runningUnpause it; check the scheduler in the Welcome page's Health row
No Trigger buttonYou're on the Dags listClick the ▷ button in the Dag's row, or open the Dag

FAQ​

What's a logical date?​

The date and time a run is for. Scheduled runs get one from the schedule; a hand-started run uses the time you trigger it, unless you change it.

Can I trigger from the Dags list?​

Yes. Each Dag's row has a ▷ button that opens the same dialog.

Can I trigger from the terminal instead?​

Yes, with airflow dags trigger: How to Trigger a Dag from the Command Line with airflow dags trigger.

Conclusion​

The Trigger button opened the Trigger Dag dialog. With Single Run and Unpause selected, the run of hello_trigger succeeded in 2.91 seconds, its greet task turned green, and the Dag was unpaused along the way.

Additional Resources​

Apache®, Apache Airflow and Airflow® are either registered trademarks or trademarks of The Apache Software Foundation in the United States and/or other countries. No endorsement by The Apache Software Foundation is implied by the use of these marks.