uranusjr commented on a change in pull request #20976:
URL: https://github.com/apache/airflow/pull/20976#discussion_r789456874



##########
File path: airflow/models/taskinstance.py
##########
@@ -2144,7 +2145,11 @@ def _record_task_map_for_downstreams(self, value: Any, 
*, session: Session) -> N
             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, 
type(value).__qualname__)
-            raise UnmappableXComPushed(value)
+            raise UnmappableXComTypePushed(value)
+        max_map_size = conf.getint("core", "max_map_size", fallback=128)
+        if len(value) > max_map_size:
+            self.log.info("Failing %s for oversize XCom push (%d > %d)", 
self.key, len(value), max_map_size)

Review comment:
       Merged.




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