gopidesupavan commented on code in PR #49818:
URL: https://github.com/apache/airflow/pull/49818#discussion_r2063071163


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -615,7 +619,11 @@ def get_task_instance_count(
         group_tasks = _get_group_tasks(dag_id, task_group_id, session, 
logical_dates, run_ids)
 
         # Get unique (task_id, map_index) pairs
-        task_map_pairs = [(ti.task_id, ti.map_index) for ti in group_tasks]
+        if map_index is None:
+            task_map_pairs = [(ti.task_id, ti.map_index) for ti in group_tasks]
+        else:
+            task_map_pairs = [(ti.task_id, ti.map_index) for ti in group_tasks 
if ti.map_index == map_index]

Review Comment:
   fixed.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to