sortega commented on code in PR #68568:
URL: https://github.com/apache/airflow/pull/68568#discussion_r3468012771


##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -732,9 +732,10 @@ def __hash__(self):
     @property
     def stats_tags(self) -> dict[str, str]:
         """Returns task instance tags."""
-        return prune_dict(
-            {"dag_id": self.dag_id, "task_id": self.task_id, "team_name": 
getattr(self, "_team_name", None)}
-        )
+        tags = self.dag_run.stats_tags

Review Comment:
   Agree. I've done that



##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -732,9 +732,10 @@ def __hash__(self):
     @property
     def stats_tags(self) -> dict[str, str]:
         """Returns task instance tags."""
-        return prune_dict(
-            {"dag_id": self.dag_id, "task_id": self.task_id, "team_name": 
getattr(self, "_team_name", None)}
-        )
+        tags = self.dag_run.stats_tags

Review Comment:
   Agreed. I've done that



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