jedcunningham commented on code in PR #33083:
URL: https://github.com/apache/airflow/pull/33083#discussion_r1283640995
##########
airflow/models/mappedoperator.py:
##########
@@ -659,6 +659,8 @@ def unmap(self, resolve: None | Mapping[str, Any] |
tuple[Context, Session]) ->
op = SerializedBaseOperator(task_id=self.task_id, params=self.params,
_airflow_from_mapped=True)
SerializedBaseOperator.populate_operator(op, self.operator_class)
+ if self.dag is not None: # For Mypy; we only serialize tasks in a DAG
so the check always satisfies.
+ SerializedBaseOperator.add_operator_to_dag(op, self.dag)
Review Comment:
```suggestion
SerializedBaseOperator.set_task_dag_references(op, self.dag)
```
--
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]