You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Lee-W (via GitHub)" <gi...@apache.org> on 2025/03/03 01:21:34 UTC
Re: [PR] feat(task_sdk): add support for inlet_events in Task Context [airflow]
Lee-W commented on code in PR #45960:
URL: https://github.com/apache/airflow/pull/45960#discussion_r1976776322
##########
airflow/utils/context.py:
##########
@@ -170,106 +149,6 @@ def _get_asset_from_db(name: str | None = None, uri: str | None = None) -> Asset
return asset.to_public()
-class LazyAssetEventSelectSequence(LazySelectSequence[AssetEvent]):
- """
- List-like interface to lazily access AssetEvent rows.
-
- :meta private:
- """
-
- @staticmethod
- def _rebuild_select(stmt: TextClause) -> Select:
- return select(AssetEvent).from_statement(stmt)
-
- @staticmethod
- def _process_row(row: Row) -> AssetEvent:
- return row[0]
-
-
-@attrs.define(init=False)
-class InletEventsAccessors(Mapping[Union[int, Asset, AssetAlias, AssetRef], LazyAssetEventSelectSequence]):
- """
- Lazy mapping for inlet asset events accessors.
-
- :meta private:
- """
-
- _inlets: list[Any]
- _assets: dict[AssetUniqueKey, Asset]
- _asset_aliases: dict[AssetAliasUniqueKey, AssetAlias]
- _session: Session
Review Comment:
Nope, this one should be fine. But I did miss another breaking change. I'll update it
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org