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

   ### Apache Airflow version
   
   3.1.0
   
   ### If "Other Airflow 2/3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   When using Dynamic Task Mapping, it is possible to define the parameter 
map_index_template, which replaces the numeric map_index value in the Airflow 
UI.
   This improves readability by allowing users to label dynamically generated 
task instances with meaningful identifiers.
   
   However, there is an issue with how this template value is rendered in the 
UI:
   The expression from map_index_template is not displayed while the mapped 
task is in the running state.
   During this phase, the UI continues to show the default numeric map_index 
value.
   
   The template value is correctly displayed once the task completes — both for 
success and failed states — but not while the task is still running.
   This behavior reduces the usability of map_index_template, since users 
cannot easily identify which mapped task instance is currently executing.
   
   ### What you think should happen instead?
   
   The value from map_index_template should be rendered and visible in the UI 
as soon as the mapped task instance is created, including while it is in the 
running state.
   
   ### How to reproduce
   
   - Define a mapped task with map_index_template set to a Jinja expression.
   - Trigger the DAG and monitor the mapped task instances in the Airflow UI.
   - Observe that while tasks are in the running state, the UI shows only 
numeric indices.
   - After tasks complete (success or failed), the template values are 
correctly rendered.
   
   ### Operating System
   
   Windows 11, docker
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### 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