Skip to content

Add ability to automatically set DAG to off after X times it failed sequentially  #36239

Description

@eladkal

Body

This idea may raise some edge cases but the core concept of it is: If a DAG fails more than X times sequentially then it probably needs some manual action thus there is no point in keeping as active. When running large deployment of Airflow I discovered that many of the DAGs were some experiments/ad hoc/tests that were leftovers and no one noticed or needed.

The value of this feature is that it helps to reduce load from the scheduler and workers. This can be very helpful for large Airflow deployments with many DAG authors that share the same instance.

This should be optional functionality with default as -1 (which means feature is off - for backward compatibility)

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

No activity

Activity on this issue will appear here.

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