Skip to contentSkip to conversation

Scheduler notification e-mail: Order failures by reason

PATCH Lucas Meneghel Rodrigues 1 participant 1 message Oct 17, 2010 KVM

lore
Share & tools
lore
#0 lore raw

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

---
 scheduler/scheduler_models.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scheduler/scheduler_models.py +1 -0
index f94077a..c302dac 100644
@@ -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]
Signature · 1 line
1.7.2.3