ashb commented on code in PR #22975:
URL: https://github.com/apache/airflow/pull/22975#discussion_r849653144


##########
airflow/models/mappedoperator.py:
##########
@@ -569,6 +573,7 @@ def _get_map_lengths(self, run_id: str, *, session: 
Session) -> Dict[str, int]:
                 map_lengths[mapped_arg_name] += length
         return map_lengths
 
+    @cache
     def _resolve_map_lengths(self, run_id: str, *, session: Session) -> 
Dict[str, int]:

Review Comment:
   Session has a longer life time than you might expect due to SQLA's Pooling



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