Lee-W commented on code in PR #36968:
URL: https://github.com/apache/airflow/pull/36968#discussion_r1465835134


##########
airflow/sentry.py:
##########
@@ -178,8 +179,12 @@ def wrapper(_self, *args, **kwargs):
 
                 with sentry_sdk.push_scope():
                     try:
-                        # Is a LocalTaskJob get the task instance
-                        if hasattr(_self, "task_instance"):
+                        ti_from_kwargs = kwargs.get("ti", None)

Review Comment:
   It's needed by `add_tagging` and `add_breadcrumbs`



-- 
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