Ordering by reason makes it easy to group failures and
easily identifying them.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 scheduler/scheduler_models.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scheduler/scheduler_models.py b/scheduler/scheduler_models.py
index f94077a..c302dac 100644
--- a/scheduler/scheduler_models.py
+++ b/scheduler/scheduler_models.py
@@ -903,6 +903,7 @@ class Job(DBObject):
                 WHERE t.job_idx = j.job_idx
                 AND s.status_idx = t.status
                 AND j.afe_job_id = %s
+                ORDER BY t.reason
                 """ % self.id)
 
         failed_rows = [r for r in rows if not 'GOOD' in r]
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to