bbovenzi opened a new issue, #23227:
URL: https://github.com/apache/airflow/issues/23227

   ### Discussed in https://github.com/apache/airflow/discussions/23220
   
   <div type='discussions-op-text'>
   
   <sup>Originally posted by **yashk97** April 25, 2022</sup>
   Hi,
   
   My use case is in case multiple DAG Runs fail on some task (not the same one 
in all of them), I want to individually re-trigger each of these DAG Runs. 
Currently, I have to rely on the Airflow UI (attached screenshots) where I 
select the failed task and clear its state (along with the downstream tasks) to 
re-run from that point. While this works, it becomes tedious if the number of 
failed DAG runs is huge.
   
   I checked the REST API Documentation and came across the clear Task 
Instances API with the following URL: /api/v1/dags/{dag_id}/clearTaskInstances
   
   However, it filters task instances of the specified DAG in a given date 
range. 
   
   I was wondering if, for a specified DAG Run, we can clear a task along with 
its downstream tasks irrespective of the states of the tasks or the DAG run 
through REST API.
   
   This will give us more granular control over re-running DAGs from the point 
of failure.
   
![image](https://user-images.githubusercontent.com/25115516/165099593-46ce449a-d303-49ee-9edb-fc5d524f4517.png)
   
![image](https://user-images.githubusercontent.com/25115516/165099683-4ba7f438-3660-4a16-a66c-2017aee5042f.png)
   </div>


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

Reply via email to