tirkarthi commented on PR #38217: URL: https://github.com/apache/airflow/pull/38217#issuecomment-2013190098
> It would clear the failed tasks for the selected run (wit option to select downstream or not). @eladkal I overlooked this part in the original issue. First I thought passing failed only clears failed tasks but it also cleared upstream failed. I found it useful since after the failed tasks is cleared and it succeeds having the downstream task might result in an extra action if not for the behaviour. Then I found the code as below where the logic is present. The request was also for dags with large number of tasks where downstream=True requirement means this will only clear upstream_failed downstream tasks and not success downstream tasks. Adding downstream or not option will change this into a modal similar to the clear task button on a dagrun level. @Pad71 let me know if I missed something. https://github.com/apache/airflow/blob/3840ec690c223904631d638088898a6455c40c55/airflow/models/dag.py#L2333-L2334 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
