vincbeck commented on code in PR #66168:
URL: https://github.com/apache/airflow/pull/66168#discussion_r3173833624
##########
airflow-core/src/airflow/assets/manager.py:
##########
@@ -182,13 +244,28 @@ def register_asset_change(
source_alias_names: Collection[str] = (),
session: Session,
partition_key: str | None = None,
+ source_is_api: bool = False,
+ api_user_teams: set[str] | None = None,
**kwargs,
) -> AssetEvent | None:
"""
Register asset related changes.
For local assets, look them up, record the asset event, queue dagruns,
and broadcast
- the asset event
+ the asset event.
+
+ When multi_team mode is enabled, team-based filtering is applied to
determine which
+ consumer DAGs should be queued:
+ - For DAG-produced events (task_instance is set), source teams are
resolved automatically
+ from the producing DAG's bundle.
+ - For API-produced events (source_is_api=True), the caller must pass
api_user_teams
+ obtained from the auth manager.
Review Comment:
Updated, let me know if that helps
--
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]