sunank200 commented on code in PR #43902:
URL: https://github.com/apache/airflow/pull/43902#discussion_r1838752010


##########
airflow/models/log.py:
##########
@@ -73,7 +73,7 @@ def __init__(
         if task_instance:
             self.dag_id = task_instance.dag_id
             self.task_id = task_instance.task_id
-            if execution_date := getattr(task_instance, "execution_date", 
None):
+            if execution_date := getattr(task_instance, "logical_date", None):
                 self.execution_date = execution_date

Review Comment:
   I have changed it now. Now if `task_instance.logical_date` exists and is not 
None,it assigns this value to `self.logical_date`.



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