ashb commented on a change in pull request #10637:
URL: https://github.com/apache/airflow/pull/10637#discussion_r485072618



##########
File path: airflow/www/views.py
##########
@@ -563,7 +563,9 @@ def last_dagruns(self, session=None):
             return wwwutils.json_response({})
 
         query = session.query(
-            DagRun.dag_id, 
sqla.func.max(DagRun.execution_date).label('last_run')
+            DagRun.dag_id,
+            sqla.func.max(DagRun.execution_date).label('execution_date'),
+            sqla.func.max(DagRun.start_date).label('start_date'),

Review comment:
       This could be incorrect an some (unlikely) circumstance:
   
   If I create an dag run for an older execution_date, this would show mixed 
values.
   
   Unfortunately doing this correctly in a single SQL query is harder.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to