kandharvishnuu commented on code in PR #44303:
URL: https://github.com/apache/airflow/pull/44303#discussion_r1855200738


##########
airflow/api_fastapi/core_api/routes/public/task_instances.py:
##########
@@ -234,6 +236,70 @@ def get_task_instance_dependencies(
     return TaskDependencyCollectionResponse.model_validate({"dependencies": 
deps})
 
 
+@task_instances_router.get(
+    task_instances_prefix + "/{task_id}/tries",
+    responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
+)
+def get_task_instance_tries(
+    dag_id: str,
+    dag_run_id: str,
+    task_id: str,
+    session: Annotated[Session, Depends(get_session)],
+    map_index: int = -1,

Review Comment:
   `get_task_instance_tries` will work for non mapped tasks. For mapped tasks 
which requires map_index, there is a different endpoint 
`get_mapped_task_instance_tries`.
   
   



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