Task failure Slack message log link doesn't show useful context #4177
Labels
💻 aspect: code
Concerns the software code in the repository
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: catalog
Related to the catalog and Airflow DAGs
🔧 tech: airflow
Involves Apache Airflow
Description
The log URL which is given as part of
ti.log_url
does not provide a way to show more context from the DAG, i.e. there's no way to view the DAG graph or grid directly from the URL that's generated withlog_url
. This appears to go to a/log
page, which doesn't have a clickable link to get back to the DAG page from it. Viewing the DAG graph or grid requires clicking on the DAGs list from that page, navigating to the appropriate DAG, and then navigating to the appropriate DAG run.Current behavior
URL: https://airflow.openverse.org/log?execution_date=2024-04-14T00%3A00%3A00%2B00%3A00&task_id=ingest_data_day_shift_186.pull_mixed_data_day_shift_186&dag_id=wikimedia_reingestion_workflow&map_index=-1
Desired behavior
URL: https://airflow.openverse.org/dags/wikimedia_reingestion_workflow/grid?dag_run_id=scheduled__2024-04-14T00%3A00%3A00%2B00%3A00&task_id=ingest_data_day_shift_156.pull_mixed_data_day_shift_156&tab=logs
Notes
Since
log_url
appears to be the only relevant URL field available on the task instance object, we may need to construct the desired URL by hand.The text was updated successfully, but these errors were encountered: