From fb50e3acb7af7ed029e93ef6e697be5c51e52984 Mon Sep 17 00:00:00 2001
From: Paul <richp@alcf.anl.gov>
Date: Tue, 28 Jul 2020 13:18:26 -0500
Subject: [PATCH] removing location from the email subject.  The subject line
 is too long on large systems, otherwise.

---
 src/lib/Components/cqm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/Components/cqm.py b/src/lib/Components/cqm.py
index b2c1d567..50618277 100644
--- a/src/lib/Components/cqm.py
+++ b/src/lib/Components/cqm.py
@@ -1438,7 +1438,7 @@ class Job (StateMachine):
                     mserver = 'localhost'
                 else:
                     mserver = mailserver
-                subj = 'Cobalt: Job %s/%s starting - %s/%s' % (self.jobid, self.user, self.queue, self.location[0])
+                subj = 'Cobalt: Job %s/%s starting - %s' % (self.jobid, self.user, self.queue)
                 mmsg = ("Job %s/%s, in the '%s' queue, starting at %s.\nJobName: %s\nCWD: %s\nCommand: %s\nArgs: %s\n" + \
                         "Project: %s\nWallTime: %s\nSubmitTime: %s\nResources allocated: %s") % \
                         (self.jobid, self.user, self.queue, time.strftime('%c', time.localtime()), self.jobname, self.cwd,
@@ -2689,7 +2689,7 @@ class Job (StateMachine):
                 mserver = 'localhost'
             else:
                 mserver = mailserver
-            subj = 'Cobalt: Job %s/%s finished - %s/%s %s' % (self.jobid, self.user, self.queue, self.location[0], stats)
+            subj = 'Cobalt: Job %s/%s finished - %s %s' % (self.jobid, self.user, self.queue, stats)
             mmsg = ("Job %s/%s, in the '%s' queue, finished at %s\nJobName: %s\nCWD: %s\nCommand: %s\nArgs: %s\n" + \
                     "Project: %s\nWallTime: %s\nSubmitTime: %s\nStats: %s\nExit code: %s\nResources used: %s") % \
                     (self.jobid, self.user, self.queue, time.strftime('%c', time.localtime()), self.jobname, self.cwd,
-- 
GitLab