jason810496 commented on code in PR #77759:
URL: https://github.com/apache/airflow/pull/77759#discussion_r4766168929
##########
task-sdk/src/airflow/sdk/execution_time/callback_runner.py:
##########
@@ -26,12 +26,26 @@
if TYPE_CHECKING:
from structlog.typing import FilteringBoundLogger as Logger
+ from airflow.sdk.definitions.asset.metadata import Metadata
from airflow.sdk.types import OutletEventAccessorsProtocol
P = ParamSpec("P")
R = TypeVar("R")
+def _record_metadata(outlet_events: OutletEventAccessorsProtocol, metadata:
Metadata) -> None:
+ from airflow.sdk.exceptions import UndeclaredOutletError
+
+ try:
+ outlet_events[metadata.asset].extra.update(metadata.extra)
+ except UndeclaredOutletError:
Review Comment:
Addressed in b2687e05a3b.
##########
task-sdk/src/airflow/sdk/execution_time/callback_runner.py:
##########
@@ -26,12 +26,26 @@
if TYPE_CHECKING:
from structlog.typing import FilteringBoundLogger as Logger
+ from airflow.sdk.definitions.asset.metadata import Metadata
from airflow.sdk.types import OutletEventAccessorsProtocol
P = ParamSpec("P")
R = TypeVar("R")
+def _record_metadata(outlet_events: OutletEventAccessorsProtocol, metadata:
Metadata) -> None:
+ from airflow.sdk.exceptions import UndeclaredOutletError
Review Comment:
Addressed in a804bbe5682.
--
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]