Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger DAG with config

Hi everyone, I am using Airflow v 2.9.0 on my Windows 11 PC using Docker Desktop, but when I click on Trigger button, I can't find Trigger DAG with config option

I want to pass input parameters as Config Parameters other than Variabes using Airflow UI. What can I do to enable Trigger DAG with config option. Or is there any other way to pass inputs as config parameters?

like image 858
Thota Tarun sai Avatar asked Jan 01 '26 06:01

Thota Tarun sai


1 Answers

For Airflow 2.7+, if your DAG uses/has config params, only then the params input screen will appear when you click the Run button.

If you still want the Run with params options, you can explicitly set the environment variable AIRFLOW__WEBSERVER__SHOW_TRIGGER_FORM_IF_NO_PARAMS=True so that the Trigger DAG w/ config button appears in the Airflow UI.

Or set the above-mentioned variable in the airflow.cfg file.

Have a look here: https://www.astronomer.io/docs/learn/airflow-params

like image 143
Indraneel Avatar answered Jan 06 '26 06:01

Indraneel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!