GayathriSrividya opened a new pull request, #67867:
URL: https://github.com/apache/airflow/pull/67867

   When a sensor is configured with \`map_index_template\` and runs in 
reschedule mode, the rendered label was not being persisted to the database on 
each reschedule. As a result, the task instance's \`rendered_map_index\` column 
was left NULL, causing the UI to display the raw numeric \`map_index\` (e.g. 
"0", "1") instead of the human-readable rendered label.
   
   **Root cause:** \`TIRescheduleStatePayload\` was missing the 
\`rendered_map_index\` field that all other terminal/retry state payloads have 
(\`TIRetryStatePayload\`, \`TaskState\`). The reschedule route handler builds a 
brand-new \`UPDATE\` query for the reschedule-specific columns (discarding the 
initial shared one), so the field had to be explicitly included in that new 
query as well.
   
   **Changes:**
   - Add \`rendered_map_index\` to \`TIRescheduleStatePayload\` (server-side 
datamodel)
   - Update reschedule route handler to write \`rendered_map_index\` to the DB
   - Add Cadwyn version migration \`AddRenderedMapIndexToReschedulePayload\` in 
\`v2026_06_30.py\`
   - Update \`_generated.py\` (task-sdk client model) to include the new field
   - Pass \`ti.rendered_map_index\` in the \`RescheduleTask\` message from the 
task runner
   - Save \`_rendered_map_index\` from \`RescheduleTask\` in the supervisor
   - Add regression test: \`test_reschedule_includes_rendered_map_index\`
   
   closes: #67521
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — GitHub Copilot (Claude Sonnet 4.6)
   
   Generated-by: GitHub Copilot (Claude Sonnet 4.6) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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