ashb commented on a change in pull request #22583:
URL: https://github.com/apache/airflow/pull/22583#discussion_r837485487



##########
File path: airflow/models/mappedoperator.py
##########
@@ -542,7 +542,7 @@ def expand_mapped_task(self, run_id: str, *, session: 
Session) -> Sequence["Task
             unmapped_ti.map_index = 0
             state = unmapped_ti.state
             self.log.debug("Updated in place to become %s", unmapped_ti)
-            ret.append(unmapped_ti)
+            ret.append(session.merge(unmapped_ti))

Review comment:
       This shouldn't be required as the `unmapped_ti` is still attached to 
`session`




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