Prajwal7842 commented on issue #57101:
URL: https://github.com/apache/airflow/issues/57101#issuecomment-3445968490

   Hi, I can confirm that this is an issue with the latest main branch. I am 
able to reproduce this locally. 
   
   After some debugging, I think I have figured out the issue here. 
   The issue is that, on line 923 in task_instance.py file ([code 
link](https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_instances.py#L923))
 we are not passing map_index correctly to `_patch_task_instance_state` 
function. The current input to task_instance_body parameter in the function is 
of type `PatchTaskInstanceBody` that lacks map_index field. 
   
   Proposed solution: Create an object of type `BulkTaskInstanceBody` with 
map_index and pass it down the function. 
   After this fix, the things are working fine on local. 
   
   <img width="1621" height="651" alt="Image" 
src="https://github.com/user-attachments/assets/1921fe05-016c-4346-8469-90f7b2b63269";
 />
   
   Can you please assign this issue to me. I will raise a PR with test cases. 
   Thank you.
   


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