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

   ### Apache Airflow version
   
   2.8.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Our sentry has captured this error in `sentry.py`:
   
   
![image](https://github.com/apache/airflow/assets/2630468/39039a53-8b84-4a4a-92fc-313bf0414507)
   
   
![image](https://github.com/apache/airflow/assets/2630468/e5c59310-03ac-4351-8bcc-cb7b431569ab)
   
   Looks at the TaskInstance class, the `task` attribute has a comment saying 
it's not always set. I think this is the case where it's not set.
   
   
https://github.com/apache/airflow/blob/e1b032d05b6fba0766a7d81f8af6bc2e2cc3d0d6/airflow/models/taskinstance.py#L1312
   
   
   ### What you think should happen instead?
   
   Sentry `add_tagging()` should not raise exceptions
   
   ### How to reproduce
   
   I'm not sure, but this seems to happen if a worker node is forcefully shut 
down when it's in the middle of running a task.
   
   ### Operating System
   
   Airflow 2.8.1 Python 3.11 Docker
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   On EKS.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to