ashb commented on code in PR #22975:
URL: https://github.com/apache/airflow/pull/22975#discussion_r849657477
##########
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:
```python-console
In [2]: @provide_session
...: def a(session):
...: print(id(session))
...: b()
In [4]: @provide_session
...: def b(session):
...: print(id(session))
In [5]: a()
140533469520240
140533469520240
```
--
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]