You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Airflow 3 select many runs and collectively remove failed tasks #52439
From the runs page of a DAG, eg https://myairflow/dags/<DAG-ID>/runs?state=failed
See the number of failed runs
select all of them
collectively clear the failed tasks
Use case/motivation
I have many runs that failed and with some code change I only want to run the failed tasks. Currently I cannot easily see how many failed runs there are and to clear I have to go one-by-one
Reacted by Sara Veldhoen, matheus-penna-reasset, Denis E. Sanches, hud, Maxim Yanukovich, Arnold, CognifyPeter, Andy-Cognify, wolfgang-cognify, fbcog and 7 more
Adding good first issue + 3.1.0 target in hope that someone from the community can work on this. That would be a great addition to the next minor release. (If not I'll try to do it but considering other priorities I'm not sure I can get to it in time for 3.1.0)
Really miss this too. We also have cases where we want to clear all successful runs of a certain dag, because we want it reran retroactively for all time periods.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
@Pei-Cheng-Yu Thank you for working on this. I can see that your PRs are for bulk delete only. Would it be possible to add back other bulk operations available in Airflow 2 such as "clear" and "mark as success/failed" to the dagrun and task instance views as well? I believe this issue was also originally asking for "clearing" the failed dagruns, despite the title.
Reacted by Joost Döbken, Krzysztof Taborski and michael-cognify
Activity
Veldhoen commentedon Jun 30, 2025
I support this, really miss this feature in Airflow 3 (both for (failed) dag runs and task instances, but primarily for dag runs.)
eladkal commentedon Jul 21, 2025
cc @bbovenzi @pierrejeambrun
pierrejeambrun commentedon Jul 22, 2025
Thanks for reporting, indeed that would be nice!
Adding good first issue + 3.1.0 target in hope that someone from the community can work on this. That would be a great addition to the next minor release. (If not I'll try to do it but considering other priorities I'm not sure I can get to it in time for 3.1.0)
rafagsiqueira commentedon Jul 25, 2025
Really miss this too. We also have cases where we want to clear all successful runs of a certain dag, because we want it reran retroactively for all time periods.
abdalhalimalzohbi commentedon Aug 5, 2025
Hi @pierrejeambrun I'm interested in giving this a try, could you please assign it to me?
sandman-92 commentedon Aug 6, 2025
I would also love to see this feature, in a workflow with 1000+ tasks, being able to clear runs and tasks in batches would be incredibly useful.
pierrejeambrun commentedon Aug 6, 2025
@abdalhalimalzohbi, you're assigned!
11 remaining items
potiuk commentedon Mar 2, 2026
@Pei-Cheng-Yu We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Pei-Cheng-Yu commentedon Mar 3, 2026
Thanks for the update! I’m still actively working on this issue
ZhaoMJ commentedon Apr 3, 2026
@Pei-Cheng-Yu Thank you for working on this. I can see that your PRs are for bulk delete only. Would it be possible to add back other bulk operations available in Airflow 2 such as "clear" and "mark as success/failed" to the dagrun and task instance views as well? I believe this issue was also originally asking for "clearing" the failed dagruns, despite the title.
Add bulk delete endpoint for Dag Runs
Add bulk delete endpoint for Dag Runs
Add bulk delete endpoint for Dag Runs
Add bulk delete endpoint for Dag Runs
Add bulk delete endpoint for Dag Runs
Add bulk delete endpoint for Dag Runs
Add bulk delete endpoint for Dag Runs
Add bulk delete Dag Runs (#67095)