Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented May 6, 2025

Related Issue

#50104
cc: @bbovenzi @pierrejeambrun

Why

  • currently there is no UI for TI deletion

How

  • add DeleteTaskInstanceButton with the DeleteDialog
Screen.Recording.2025-05-06.at.6.45.38.PM.mov

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label May 6, 2025
@guan404ming guan404ming marked this pull request as ready for review May 6, 2025 10:48
@ephraimbuddy
Copy link
Contributor

Why do you want to delete TI? Is there an equivalent API/CLI option for deleting TI?

@guan404ming
Copy link
Member Author

Especially when iterating on dag changes, it is sometimes very helpful to be able to delete task instance or dag run history. In Airflow 2.x, you could delete records from the DB via the UI, but this isn't yet possible in Airflow 3.

There is user from #50104 said that it would be great to be able to delete TI when iterate on dag changes and I think that make sense. Also, I’ve also implemented the corresponding api endpoint as well in #50165.

Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments

@bbovenzi bbovenzi added this to the Airflow 3.1.0 milestone May 6, 2025
@bbovenzi bbovenzi merged commit fde8684 into apache:main May 6, 2025
42 checks passed
@guan404ming
Copy link
Member Author

Thanks!

@guan404ming guan404ming deleted the add-tl-deletion branch May 6, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants