uranusjr commented on a change in pull request #20286: URL: https://github.com/apache/airflow/pull/20286#discussion_r783658006
########## File path: airflow/models/taskinstance.py ########## @@ -2128,6 +2138,14 @@ def set_duration(self) -> None: self.duration = None self.log.debug("Task Duration set to %s", self.duration) + def _record_task_map_for_downstreams(self, value: Any, *, session: Session) -> None: + if not self.task.has_mapped_dependants(): + return + if not isinstance(value, collections.abc.Collection) or isinstance(value, (bytes, str)): + self.log.info("Failing %s for unmappable XCom push %r", self.key, value) + raise UnmappableXComPushed(value) Review comment: Changed both logging and exception to only include the variable type instead. -- 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