ephraimbuddy commented on code in PR #55139:
URL: https://github.com/apache/airflow/pull/55139#discussion_r2318195646


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -601,11 +601,11 @@ def get_log_url_from_ti(ti: RuntimeTaskInstance) -> str:
 def parse(what: StartupDetails, log: Logger) -> RuntimeTaskInstance:
     # TODO: Task-SDK:
     # Using DagBag here is about 98% wrong, but it'll do for now
-
-    from airflow.models.dagbag import DagBag
+    from airflow.dag_processing.dagbag import DagBag
 
     bundle_info = what.bundle_info
-    bundle_instance = DagBundlesManager().get_bundle(
+    manager = DagBundlesManager()
+    bundle_instance = manager.get_bundle(

Review Comment:
   ```suggestion
       bundle_instance = DagBundlesManager().get_bundle(
   ```



-- 
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]

Reply via email to