Skip to content

TI.log_url is incorrect with mapped tasks #24328

@fritz-astronomer

Description

@fritz-astronomer

Apache Airflow version

2.3.0

What happened

I had an on_failure_callback that sent a task_instance.log_url to slack, it no longer behaves correctly - giving me a page with no logs rendered instead of the logs for my task.

(Example of failure, URL like: https://XYZ.astronomer.run/dhp2pmdd/log?execution_date=2022-06-05T00%3A00%3A00%2B00%3A00&task_id=create_XXX_zip_files_and_upload&dag_id=my_dag )
image

What you think should happen instead

The correct behavior would be the URL:
https://XYZ.astronomer.run/dhp2pmdd/log?execution_date=2022-06-05T00%3A00%3A00%2B00%3A00&task_id=create_XXX_zip_files_and_upload&dag_id=my_dag&map_index=0

as exemplified:
image

How to reproduce

No response

Operating System

Debian/Docker

Versions of Apache Airflow Providers

No response

Deployment

Astronomer

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

Metadata

Metadata

Labels

area:UIRelated to UI/UX. For Frontend Developers.good first issuekind:bugThis is a clearly a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions