kaxil commented on code in PR #55068:
URL: https://github.com/apache/airflow/pull/55068#discussion_r2479852352


##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -603,8 +606,49 @@ def update_triggers(self, requested_trigger_ids: set[int]):
         adds them to the deques so the subprocess can actually mutate the 
running
         trigger set.
         """
+        from airflow.models.dagbag import DBDagBag
+
+        dag_bag = DBDagBag()
         render_log_fname = log_filename_template_renderer()
 
+        @provide_session
+        def create_workload(trigger: Trigger, session: Session = NEW_SESSION) 
-> workloads.RunTrigger | None:
+            if trigger.task_instance:
+                if not new_trigger_orm.task_instance.dag_version_id:
+                    # This is to handle 2 to 3 upgrade where TI.dag_version_id 
can be none

Review Comment:
   Looks like bad merge of `main`: changes from 
https://github.com/apache/airflow/pull/55884 are showing up here



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