amoghrajesh commented on code in PR #45727: URL: https://github.com/apache/airflow/pull/45727#discussion_r1921853243
########## task_sdk/src/airflow/sdk/execution_time/supervisor.py: ########## @@ -787,6 +790,14 @@ def _handle_request(self, msg: ToSupervisor, log: FilteringBoundLogger): self.client.variables.set(msg.key, msg.value, msg.description) elif isinstance(msg, SetRenderedFields): self.client.task_instances.set_rtif(self.id, msg.rendered_fields) + elif isinstance(msg, GetAssetByName): + asset_resp = self.client.assets.get(name=msg.name) + asset_result = AssetResult.from_asset_response(asset_resp) + resp = asset_result.model_dump_json(exclude_unset=True).encode() + elif isinstance(msg, GetAssetByUri): + asset_resp = self.client.assets.get(uri=msg.uri) + asset_result = AssetResult.from_asset_response(asset_resp) + resp = asset_result.model_dump_json(exclude_unset=True).encode() Review Comment: I was just wondering what would happen if both were provided. Nicely handled -- 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-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org