Skip to content

Triggering DAG with parameters is mandatory when show_trigger_form_if_no_params is enabled #36843

@csp33

Description

@csp33

Apache Airflow version

2.8.0

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When setting show_trigger_form_if_no_params to True, users can not trigger DAGs without configuration. The Trigger DAG button redirects to the Trigger DAG form instead of triggering the DAG with dagrun_conf={} (like before)

Grabacion.de.pantalla.2024-01-17.a.las.13.54.15.mov

What you think should happen instead?

The Trigger DAG button should trigger the DAG with dagrun_conf={} (like before).
The Trigger DAG w/ config button should keep its behavior.

How to reproduce

  1. Add a DAG without params to your DAGs folder (for example, example_bash_operator.py).
  2. Start Airflow with the following environment variable value: AIRFLOW__WEBSERVER__SHOW_TRIGGER_FORM_IF_NO_PARAMS=True
  3. Try to trigger the DAG without config (first option)

Operating System

Airflow Docker Image

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

AIRFLOW__WEBSERVER__SHOW_TRIGGER_FORM_IF_NO_PARAMS=True

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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