Lee-W commented on code in PR #69849:
URL: https://github.com/apache/airflow/pull/69849#discussion_r4695589847


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2960,9 +3011,13 @@ def _create_dag_runs(self, dag_models: 
Collection[DagModel], session: Session) -
                     session=session,
                     
active_non_backfill_runs=active_runs_of_dags[dag_model.dag_id],
                 )
-                if gated_locked_records is not None:
-                    
created_run.consumed_asset_events.extend(gated_asset_events)
-                    session.flush()  # Make consumed events visible to ADRQ 
cleanup.
+                if gated_asset_event_ids is not None:
+                    if TYPE_CHECKING:
+                        assert gated_locked_records is not None

Review Comment:
   yep, updated. thanks!



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