Scheduler notification e-mail: Order failures by reason
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(-)
scheduler/scheduler_models.py +1 -0
@@ -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