thejens opened a new issue #15697:
URL: https://github.com/apache/airflow/issues/15697


   **Description**
   
   When manually retrying a failed task, and it succeeds, the downstream tasks 
with an "upstream_failed" state should be reset, or possibly added to a 
new/different state as the upstream is now indeed successful. This also applies 
when manually setting the task to success.
   
   **Use case / motivation**
   
   When retrying a failed task so it succeeds, or manually setting it to 
success, I believe the default expected behaviour is for downstream tasks to be 
automatically "unblocked". I realize the current behaviour of retaining the 
"upstream_failed" state is in some cases desired, but I believe those 
situations are in minority.
   
   The best example would be a task that has several branches of downstream 
tasks. When it fails, all those branches fail with "upstream_failed". Once the 
task is manually set to success (or manually re-triggered) it is sometimes 
painful to go through all those downstream branches and clear them one-by-one, 
especially for more complex workflows where the recursive clearing might be too 
aggressive.
   
   My current workaround is to manually search for all upstream_failed tasks 
and clear them from the tasks overview interface, or to use recursive clear on 
the now successful "root" task, then quickly marking it back to success before 
it re-triggers.
   
   
   **Are you willing to submit a PR?**
   
   Yes! But I wouldn't know where to implement this.
   
   **Related Issues**
   n/a
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to