ashb commented on code in PR #22909: URL: https://github.com/apache/airflow/pull/22909#discussion_r847645333
########## airflow/serialization/serialized_objects.py: ########## @@ -1081,12 +1081,12 @@ def deserialize_dag(cls, encoded_dag: Dict[str, Any]) -> 'SerializedDAG': setattr(task.subdag, 'parent_dag', dag) if isinstance(task, MappedOperator): - for d in (task.mapped_kwargs, task.partial_kwargs): - for k, v in d.items(): - if not isinstance(v, _XComRef): - continue + expansion_kwargs = task._get_expansion_kwargs() Review Comment: This was a bug that I don't know how we didn't hit before? The serialized task as a result had these objects left as _XcomRef, which as it is a named tuple has a `__len__` of 2 😱 -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org