You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2025/05/12 15:43:14 UTC

(airflow) branch main updated: Fix index to sort by last parsing duration (#50388)

This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 3c562093f24 Fix index to sort by last parsing duration (#50388)
3c562093f24 is described below

commit 3c562093f2442126fc678a16068a70d6144a6877
Author: Karthikeyan Singaravelan <ti...@gmail.com>
AuthorDate: Mon May 12 21:13:08 2025 +0530

    Fix index to sort by last parsing duration (#50388)
---
 airflow-core/src/airflow/dag_processing/manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/dag_processing/manager.py b/airflow-core/src/airflow/dag_processing/manager.py
index 9998f3fcc89..e67d9f84002 100644
--- a/airflow-core/src/airflow/dag_processing/manager.py
+++ b/airflow-core/src/airflow/dag_processing/manager.py
@@ -710,7 +710,7 @@ class DagFileProcessorManager(LoggingMixin):
                 )
 
         # Sort by longest last runtime. (Can't sort None values in python3)
-        rows.sort(key=lambda x: x[5] or 0.0, reverse=True)
+        rows.sort(key=lambda x: x[6] or 0.0, reverse=True)
 
         formatted_rows = []
         for (