uranusjr commented on code in PR #70805:
URL: https://github.com/apache/airflow/pull/70805#discussion_r3732418391
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -1012,21 +1013,34 @@ def _register_deserialization_allowed_classes(dag, log:
Logger) -> None:
)
-@detail_span("parse")
-def parse(what: StartupDetails, log: Logger) -> RuntimeTaskInstance:
- # TODO: Task-SDK:
- # Using BundleDagBag here is about 98% wrong, but it'll do for now
- from airflow.dag_processing.dagbag import BundleDagBag
+def initialize_ti_bundle(bundle_info: BundleInfo, log: Logger) ->
BaseDagBundle:
Review Comment:
Is this planned to be used anywhere else? Currently it’s only imported in
one file, from what I can tell, so it should probably live there instead.
--
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]