apache / apache/airflow

Warn users when clearing task in overrun dag

Open
#58,370 1 comment 0 reactions 0 assignees View on GitHub
area:UI kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

Related to #25440, I think the airflow UI should at least have warning popup/confirmation when a user attempts to clear a task from a dag that has already finished, or more precisely, with the following context:
* Warn user that a new dag run will be created if the dag is already finished
* If task or dag timeout has been reached, warn user that this will reset the timeout.
* If timeout has not been reached, ask user if timeout should be reset or keep to original timeout (warning user how much time will be left).

Because at the moment it does not seem clear or obvious to me/users that clearing a task will affect these timeouts, and this can have serious impacts to dags that run daily and depend on the dag timeout to make sure it doesn't overshoot to the next day.

_Originally posted by @samvel1024 in https://github.com/apache/airflow/discussions/25440_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Airflow UI task-clearing flow and the discussion referenced in #25440. The work is done when clearing tasks from finished DAGs presents the requested warnings about new DAG runs and timeout reset or remaining time, with the choices matching the listed timeout conditions.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.