Skip to content

Clear, Mark Success/Fail and delete multiple Task Instances#64141

Merged
shubhamraj-git merged 7 commits intoapache:mainfrom
shubhamraj-git:issue-63855-main
Mar 26, 2026
Merged

Clear, Mark Success/Fail and delete multiple Task Instances#64141
shubhamraj-git merged 7 commits intoapache:mainfrom
shubhamraj-git:issue-63855-main

Conversation

@shubhamraj-git
Copy link
Copy Markdown
Contributor

closes: #63855

Multi-select TI for the bulk operations such as clear, mark fail/success and delete.

Screenshots -

image image image image

@eladkal eladkal requested a review from jscheffl March 24, 2026 08:41
@eladkal eladkal added this to the Airflow 3.2.0 milestone Mar 24, 2026
@eladkal eladkal added the type:improvement Changelog: Improvements label Mar 24, 2026
Copy link
Copy Markdown
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Looks good in my view. As you know I am not a pro in React but tested manually.

One minor, don't know if complex to fix: Adding a not is not setting the note to all tasks being changed e.g. when clearing.

Would be cool to get this into 3.2.0 even if Beta 2 is out - missing this feature every day! We even had one peer today implementing a Dag allowing users to reset tasks by filter as no other UI option possible... (and this Dag uses DB access to clear tasks... but barely missing in 3.x so far!)

@shubhamraj-git
Copy link
Copy Markdown
Contributor Author

@jscheffl The notes are patched.

Copy link
Copy Markdown
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Did a second pass review and can confirm note is working now. With my naive eyes code looks good! LGTM!

@shubhamraj-git shubhamraj-git merged commit 4394583 into apache:main Mar 26, 2026
278 of 281 checks passed
Copy link
Copy Markdown
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

I don't think this is a good approach to make N+1 queries to the backend.

Basically clearing 100 Tis will trigger 100 concurrent db request. That's probably not the best way to handle this.

Did you try this at scale, how does this behave?

This can be a temporary band aid, but will probably need some rework later

@pierrejeambrun
Copy link
Copy Markdown
Member

Marking for 3.2.1. Feature freeze is on for 3.2.0 and thats a big one with a lot of possible edge cases.

@shubhamraj-git
Copy link
Copy Markdown
Contributor Author

@pierrejeambrun Yes, this is just a temporary aid to get it working, future PRs will be needed to make it stable.

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

Labels

area:API Airflow's REST/HTTP API area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI - Clear/Mark Success/Fail multiple Task Instances from multi-select

4 participants