Skip to content

Conversation

@Prajwal7842
Copy link
Contributor

@Prajwal7842 Prajwal7842 commented Oct 25, 2025

This PR updates patchTaskInstace API to use map_index when updating the ti states. For dynamic tasks, map_index was not getting honoured due to the use of PatchTaskInstanceBody (which lacks map_index attribute).
Closes 57061

Logic: Previously PatchTaskInstanceBody model was being passed _patch_task_instance_state method, which lacks map_index information. To fix this issue, BulkTaskInstanceBody model is implemented and used instead


@Prajwal7842
Copy link
Contributor Author

Hi @bugraoz93 can you please review the PR, when available. All checks are passing now. Thank you.

Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for the good catch!

Copy link
Contributor

@bugraoz93 bugraoz93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Prajwal7842!

@jason810496 jason810496 merged commit 63b4751 into apache:main Oct 28, 2025
112 checks passed
@jason810496
Copy link
Member

I forgot to add backport label before merging. I will manually backport later on.

jason810496 pushed a commit to jason810496/airflow that referenced this pull request Oct 28, 2025
…state (apache#57226)

(cherry picked from commit 63b4751)

Co-authored-by: Prajwal7842 <34996624+Prajwal7842@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing a mapped task's state within a dynamic TaskGroup affects other mapped tasks

3 participants