Commit 012e1789 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

List jobs ordered by 'creation_time' in descending order.

parent 260daa9f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -329,7 +329,8 @@ class DbConnector(object):
                           WHERE phase
                           NOT IN ('ABORTED',
                                   'COMPLETED',
                                   'ERROR');
                                   'ERROR')
                           ORDER BY creation_time DESC;
                    """)
                result = cursor.fetchall()
            except Exception as e:
@@ -356,7 +357,8 @@ class DbConnector(object):
                               start_time,
                               owner_id
                               FROM job
                               WHERE phase = %s;
                               WHERE phase = %s
                               ORDER BY creation_time DESC;
                        """,
                        (phase,))
                else:
@@ -368,7 +370,8 @@ class DbConnector(object):
                               end_time,
                               owner_id
                               FROM job
                               WHERE phase = %s;
                               WHERE phase = %s
                               ORDER BY creation_time DESC;
                        """,
                        (phase,))
                result = cursor.fetchall()