ephraimbuddy commented on code in PR #32520:
URL: https://github.com/apache/airflow/pull/32520#discussion_r1537254872


##########
airflow/models/taskmixin.py:
##########
@@ -161,11 +161,18 @@ def node_id(self) -> str:
 
     @property
     def label(self) -> str | None:
+        from airflow.models.baseoperator import BaseOperator
+        from airflow.models.mappedoperator import MappedOperator
+
         tg = self.task_group
         if tg and tg.node_id and tg.prefix_group_id:
             # "task_group_id.task_id" -> "task_id"
             return self.node_id[len(tg.node_id) + 1 :]
-        return self.node_id
+
+        if isinstance(self, (BaseOperator, MappedOperator)):
+            return self.task_display_name
+        else:
+            return self.node_id

Review Comment:
   ```suggestion
           return self.node_id
   ```



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