freyrsae opened a new issue, #24990:
URL: https://github.com/apache/airflow/issues/24990

   ### Apache Airflow version
   
   2.2.5
   
   ### What happened
   
   We have slack alerting on failure enabled in our DAG and use 
`context.get('task_instance')` to customise the error message but it is usually 
the wrong task_instance we get. Seems very familiar to 
https://github.com/apache/airflow/discussions/19371
   
   ### What you think should happen instead
   
   I should get the task instance of the task that failed, not just some task 
in the dag.
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   Running with Composer
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Composer
   
   ### Deployment details
   
   Using composer-1.19.2-airflow-2.2.5
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to