Skip to content

Commit e5a88cc

Browse files
authored
Eliminate serdag loading added in #56422 (#57537)
It was wrong to load the serdag and not use it. The initial idea was to use the serdag at line 437 but was omitted. Thinking about it now, it will be faster to only load serdag when there's a TI associated with the dag version
1 parent 552e605 commit e5a88cc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎airflow-core/src/airflow/models/serialized_dag.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ def write_dag(
418418
select(DagVersion)
419419
.where(DagVersion.dag_id == dag.dag_id)
420420
.options(joinedload(DagVersion.task_instances))
421-
.options(joinedload(DagVersion.serialized_dag))
422421
.order_by(DagVersion.created_at.desc())
423422
.limit(1)
424423
)

0 commit comments

Comments
 (0)