TaskInstance::log_url
's webpage does not provide a link or mechanism to view the DAG run
#39179
Closed
2 tasks done
Labels
area:core
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
2.9.0
If "Other Airflow 2 version" selected, which one?
No response
What happened?
See WordPress/openverse#4177 for a specific case.
When viewing a URL generated by
TaskInsatnce::log_url
, this directs the user to a/log
page. This page has the DAG ID and the enable/disable switch at the top, but no link to get to the DAG's grid or graph view. Additionally, theschedule
information in the top right of the page will always show asSchedule: False
on the/log
page, even if the DAG has a schedule.airflow/airflow/models/taskinstance.py
Lines 1786 to 1798 in b0e9613
The "Log Url" that shows up in the "Task Instances" browse page of the webserver apparently uses a link to the grid view rather than
/log
directly. This seems to be because it's constructed directly:airflow/airflow/www/views.py
Lines 5186 to 5205 in b0e9613
What you think should happen instead?
It would be helpful if the
/log
page (and thus the link generated byTaskInstance::log_url
) had a way to view the entire DAG in the graph & grid views. So much work has been done on the new DAG view (which rocks!) - that would be the ideal view to be directed to IMO rather than a standalone log page that requires navigation to the DAGs list then navigation to the DAG then navigation to the right DAG run and task in order to actually view the failure in the context of the entire DAG.How to reproduce
Run a task which prints out
ti.log_url
, then visit that URL and observe that there's no way to navigate back to the DAG.Operating System
Official docker image
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: