Skip to content

Commit

Permalink
Revert "Fix the order of tasks during serialization (apache#42219)" (a…
Browse files Browse the repository at this point in the history
…pache#42646)

This reverts commit adb9466 a.k.a. PR apache#42219. Was causing tests to fail.
  • Loading branch information
dstandish authored Oct 2, 2024
1 parent c72dad7 commit ae31b21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions airflow/serialization/serialized_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,9 +1604,7 @@ def serialize_dag(cls, dag: DAG) -> dict:
try:
serialized_dag = cls.serialize_to_json(dag, cls._decorated_fields)
serialized_dag["_processor_dags_folder"] = DAGS_FOLDER
serialized_dag["tasks"] = [
cls.serialize(dag.task_dict[task_id]) for task_id in sorted(dag.task_dict)
]
serialized_dag["tasks"] = [cls.serialize(task) for _, task in dag.task_dict.items()]

dag_deps = [
dep
Expand Down

0 comments on commit ae31b21

Please sign in to comment.