GitHub user seosuho edited a discussion: Unable to Retrieve Logs for Individual
Mapped Tasks via Official REST API in Airflow 2.9.3
We are currently using the Airflow Helm chart with Airflow version 2.9.3. When
a task (e.g., XXX_operator) contains multiple mapped tasks, we are unable to
retrieve logs for each individual mapped task using the official REST API. The
current API only supports log retrieval via:
`GET
/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number}`
This API endpoint does not provide a way to specify or retrieve logs for each
mapped task individually. Could you please provide guidance on how to access
logs for each mapped task instance? If there is no current support for this, we
would like to request a feature improvement in a future release to allow
retrieval of individual logs for mapped tasks.
API Endpoint Under Discussion:
`http://airflow.XXX.net/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number}`
Thank you for your attention and help.
GitHub link: https://github.com/apache/airflow/discussions/47137
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]