Skip to content

Adding max_consecutive_failed_dag_runs in UI for dag #38171

Description

@pateash

Description

related - #36935

We are adding the ability to automatically turn off DAG after X number of consecutive failures.

There are 2 ways to configure this

in DAG() using max_consecutive_failed_dag_runs parameter this will override any config (as below)
Using core config inside airflow.cfg or variable AIRFLOW__CORE_MAX_CONSECUTIVE_FAILED_DAG_RUNS_PER_DAG
environment variable.

Use case/motivation

We should also show this information into dag_id(besides dag_id) if this is being used,
although we are showing this in dag details for now.

image

Related issues

#36935

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions