airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject airavata git commit: Handled Lonestart different email sender address
Date Mon, 27 Apr 2015 19:29:50 GMT
Repository: airavata
Updated Branches:
  refs/heads/master ab2efea08 -> 8ad2e036d


Handled Lonestart different email sender address


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/8ad2e036
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/8ad2e036
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/8ad2e036

Branch: refs/heads/master
Commit: 8ad2e036de4c9bc3ff15c61f6e23b325d082122c
Parents: ab2efea
Author: shamrath <shameerainfo@gmail.com>
Authored: Mon Apr 27 15:29:44 2015 -0400
Committer: shamrath <shameerainfo@gmail.com>
Committed: Mon Apr 27 15:29:44 2015 -0400

----------------------------------------------------------------------
 .../airavata/gfac/monitor/email/EmailBasedMonitor.java       | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/8ad2e036/modules/gfac/gfac-monitor/gfac-email-monitor/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-monitor/gfac-email-monitor/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java
b/modules/gfac/gfac-monitor/gfac-email-monitor/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java
index 97d3a3a..4a4e4d54d 100644
--- a/modules/gfac/gfac-monitor/gfac-email-monitor/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java
+++ b/modules/gfac/gfac-monitor/gfac-email-monitor/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java
@@ -136,12 +136,14 @@ public class EmailBasedMonitor implements Runnable{
                 return ResourceJobManagerType.PBS;
             case "slurm@batch1.stampede.tacc.utexas.edu": // stampede
                 return ResourceJobManagerType.SLURM;
-            case "root <root@c341-203.ls4.tacc.utexas.edu>":
-                return ResourceJobManagerType.UGE;
 //            case "lsf":
 //                return ResourceJobManagerType.LSF;
             default:
-                throw new AiravataException("[EJM]: Couldn't identify Resource job manager
type from address " + addressStr);
+                if (addressStr.contains("ls4.tacc.utexas.edu>")) { // lonestar
+                    return ResourceJobManagerType.UGE;
+                } else {
+                    throw new AiravataException("[EJM]: Couldn't identify Resource job manager
type from address " + addressStr);
+                }
         }
 
     }


Mime
View raw message