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


##########
airflow/models/taskinstance.py:
##########
@@ -3835,10 +3833,12 @@ def __init__(self, content, user_id=None):
         self.user_id = user_id
 
     def __repr__(self):
-        prefix = f"<{self.__class__.__name__}: {self.dag_id}.{self.task_id} 
{self.run_id}"
-        if self.map_index != -1:
-            prefix += f" map_index={self.map_index}"
-        return prefix + ">"
+        if self.task_instance:

Review Comment:
   Yeah, it can't be none since we used TI.id as the primary key which means 
it'd always have a value. I will update it



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