kacpermuda commented on code in PR #40722:
URL: https://github.com/apache/airflow/pull/40722#discussion_r1687571736


##########
airflow/models/mappedoperator.py:
##########
@@ -839,6 +841,8 @@ def unmap(self, resolve: None | Mapping[str, Any] | 
tuple[Context, Session]) ->
         from airflow.serialization.serialized_objects import 
SerializedBaseOperator
 
         op = SerializedBaseOperator(task_id=self.task_id, params=self.params, 
_airflow_from_mapped=True)
+        if "upstream_task_ids" not in self.operator_class:  # 
upstream_task_ids is not serialized
+            self.operator_class["upstream_task_ids"] = 
list(self.upstream_task_ids)

Review Comment:
   Do you see any downsides, apart from slightly increasing the size of the 
serialised object and possibly, duplicating some information that can be 
deducted with downstream_task_ids?



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