vincbeck commented on code in PR #68108:
URL: https://github.com/apache/airflow/pull/68108#discussion_r3376048907
##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -501,7 +500,11 @@ def check_version_id_exists_in_dr(self, dag_version_id:
UUID, *, session: Sessio
@property
def stats_tags(self) -> dict[str, str]:
- return prune_dict({"dag_id": self.dag_id, "run_type": self.run_type})
+ tags = prune_dict({"dag_id": self.dag_id, "run_type": self.run_type})
+ team_name = getattr(self, "_team_name", None)
+ if team_name:
+ tags["team_name"] = team_name
+ return tags
Review Comment:
nit (but also personal preference so feel free to leave it as is if you
prefer your version)
```suggestion
tags = prune_dict({"dag_id": self.dag_id, "run_type": self.run_type,
"team_name": getattr(self, "_team_name", None)})
```
If you apply it, apply it elsewhere as well (e.g.
`airflow-core/src/airflow/models/taskinstance.py`)
--
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]