Scheduler notification e-mail: Order failures by reason

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux