dstandish commented on code in PR #44752:
URL: https://github.com/apache/airflow/pull/44752#discussion_r1876651568


##########
airflow/executors/workloads.py:
##########
@@ -84,7 +92,13 @@ def make(cls, ti: TIModel, dag_path: Path | None = None) -> 
ExecuteTask:
         from airflow.utils.helpers import log_filename_template_renderer
 
         ser_ti = TaskInstance.model_validate(ti, from_attributes=True)
-
+        bundle = ti.dag_model.dag_bundle
+        ser_ti.bundle = DagBundle.model_construct(
+            name=bundle.name,
+            classpath=bundle.classpath,
+            kwargs=bundle.kwargs,
+            version=bundle.version,

Review Comment:
   ```suggestion
               version=dag_run.version,
   ```



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