You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/29 13:37:04 UTC
[GitHub] [airflow] ashb commented on a change in pull request #22583: Consider mapped upstream in TriggerRuleDep
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org