-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Apache Airflow version
2.10.4
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Apache Airflow Version: 2.10.4
Previous Version (Worked as Expected): 2.9.3
Environment: Provide relevant details (e.g., deployment method, OS, executor type)
Description
After upgrading Airflow from 2.9.3 to 2.10.4, I observed that the log_url function is generating incorrect URLs. The returned URL does not match the log view page URL in the UI.
I am using Slack notifications; it was working fine until yesterday, but now the log URL redirects to the wrong URL path.
using : "url": task_instance.log_url.replace("localhost:8080", "prod.host.com")
airflow.models.taskinstance.TaskInstance => @property def log_url(self) -> str
It should be:
https://host/dags/dag_id/grid?tab=logs&dag_run_id=manual__2025-02-07T03%3A25%3A19.637151%2B00%3A00&task_id=xyz
Would appreciate any insights from the maintainers on this issue. Thanks!
What you think should happen instead?
NOTE: Please verify once.
How to reproduce
- Upgrade Airflow from 2.9.3 to 2.10.4.
- Retrieve log_url from Airflow task instance metadata.
- Compare the generated URL with the actual log view page in the UI.
Operating System
Linux
Versions of Apache Airflow Providers
2.10.4
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
- I agree to follow this project's Code of Conduct