vincbeck commented on code in PR #38297:
URL: https://github.com/apache/airflow/pull/38297#discussion_r1531020312


##########
airflow/models/taskinstance.py:
##########
@@ -1839,6 +1839,36 @@ def key(self) -> TaskInstanceKey:
         """Returns a tuple that identifies the task instance uniquely."""
         return TaskInstanceKey(self.dag_id, self.task_id, self.run_id, 
self.try_number, self.map_index)
 
+    @staticmethod
+    @internal_api_call
+    @provide_session
+    def _set_state(ti, state, session=NEW_SESSION):
+        TI = TaskInstance
+        if not isinstance(ti, TaskInstance):
+            ti = (
+                session.query(TI)

Review Comment:
   And if AIP-44 is enabled, what is sent through the wire? 
`TaskInstancePydantic` I guess, which is serializable. Makes sense to me 



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