dstandish commented on code in PR #37854:
URL: https://github.com/apache/airflow/pull/37854#discussion_r1527596385


##########
airflow/serialization/pydantic/taskinstance.py:
##########
@@ -105,12 +105,13 @@ class TaskInstancePydantic(BaseModelPydantic, 
LoggingMixin):
     trigger_timeout: Optional[datetime]
     next_method: Optional[str]
     next_kwargs: Optional[dict]
-    run_as_user: Optional[str]
+    run_as_user: Optional[str] = None

Review Comment:
   mmm... it's worse than that... there is some logic that uses `hasattr` which 
assumes (by virtue of has attr self.task) that `self.task` is not None



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