jyotsa09 opened a new issue #18579:
URL: https://github.com/apache/airflow/issues/18579


   ### Apache Airflow version
   
   2.2.0b2 (beta snapshot)
   
   ### Operating System
   
   Debian buster
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   Astro dev start
   
   ### What happened
   
   Current task instance state remains unchanged after updating the state to 
success/failed through API. Also if the "include_past" in payload is true then 
Its updating the states of past task instances not the current task instances.
   
   
   
   ### What you expected to happen
   
   Task Instances state should update as per the state mentioned in the payload 
and also downstream tasks in upstream_failed state should automatically clear.
   
   ### How to reproduce
   
   API end point- 
   ```
   dags/{{dag_id}}/updateTaskInstancesState
   ```
   Payload- 
   ```
   {
   "dry_run": false,
   "task_id": "{{task_id}}",
   "execution_date": "{{dag_execution_date}}",
   "include_upstream": false,
   "include_downstream": true,
   "include_future": false,
   "include_past": false,
   "new_state": "success"
   }
   ```
   
   ### Anything else
   
   It's giving me 200 as well for the case where I am passing non existing 
execution date in payload.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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