Lee-W commented on code in PR #41325:
URL: https://github.com/apache/airflow/pull/41325#discussion_r1833864895
##########
airflow/utils/context.py:
##########
@@ -274,14 +279,27 @@ def __getitem__(self, key: int | str | Asset |
AssetAlias) -> LazyAssetEventSele
obj = self._inlets[key]
if not isinstance(obj, (Asset, AssetAlias)):
raise IndexError(key)
+
+ if isinstance(obj, AssetRef):
+ obj = _fetch_active_assets_by_name([obj.name], self._session)
Review Comment:
Looks like it's wrong. I'm not sure why it seemed to work the last time I
tried 🤔, but this is going to be redesigned for loading all the assets all at
once. will take extra care on this issue
--
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]