ashb commented on a change in pull request #20286:
URL: https://github.com/apache/airflow/pull/20286#discussion_r783184829
##########
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:
I don't think we should include the _whole_ value here -- it could
potentially be a huge object/structure/etc. (Either here, or in the exception
itself.
--
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]