airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: modifying logs to get a better view of monitoring
Date Thu, 18 Sep 2014 22:11:16 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 716b85fd4 -> 822bbe860


modifying logs to get a better view of monitoring


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

Branch: refs/heads/master
Commit: 822bbe8602a00408bea7ef9ad402cfce0f30a153
Parents: 716b85f
Author: lahiru <lahiru@apache.org>
Authored: Thu Sep 18 18:11:11 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Thu Sep 18 18:11:11 2014 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/gsi/ssh/api/job/PBSOutputParser.java    | 5 -----
 .../org/apache/airavata/gsi/ssh/api/job/SlurmOutputParser.java  | 5 -----
 2 files changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/822bbe86/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/PBSOutputParser.java
----------------------------------------------------------------------
diff --git a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/PBSOutputParser.java
b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/PBSOutputParser.java
index 6787555..1e9443a 100644
--- a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/PBSOutputParser.java
+++ b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/PBSOutputParser.java
@@ -162,7 +162,6 @@ public class PBSOutputParser implements OutputParser {
 //        int lastStop = 0;
         for (String jobID : statusMap.keySet()) {
             String jobName = jobID.split(",")[1];
-            boolean found = false;
             for (int i = 0; i < info.length; i++) {
                 if (info[i].contains(jobName.substring(0,8))) {
                     // now starts processing this line
@@ -177,13 +176,9 @@ public class PBSOutputParser implements OutputParser {
                     }
 //                    lastStop = i + 1;
                     statusMap.put(jobID, JobStatus.valueOf(columnList.get(9)));
-                    found = true;
                     break;
                 }
             }
-            if(!found) {
-                log.error("Couldn't find the status of the Job with JobName: " + jobName
+ "Job Id: " + jobID.split(",")[0]);
-            }
         }
     }
 

http://git-wip-us.apache.org/repos/asf/airavata/blob/822bbe86/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/SlurmOutputParser.java
----------------------------------------------------------------------
diff --git a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/SlurmOutputParser.java
b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/SlurmOutputParser.java
index c12441b..5c96b06 100644
--- a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/SlurmOutputParser.java
+++ b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/api/job/SlurmOutputParser.java
@@ -160,7 +160,6 @@ public class SlurmOutputParser implements OutputParser {
         for (String jobID : statusMap.keySet()) {
             String jobId = jobID.split(",")[0];
             String jobName = jobID.split(",")[1];
-            boolean found = false;
             for (int i = 0; i < info.length; i++) {
                 if (info[i].contains(jobName.substring(0, 8))) {
                     // now starts processing this line
@@ -175,13 +174,9 @@ public class SlurmOutputParser implements OutputParser {
                     }
 //                    lastStop = i + 1;
                     statusMap.put(jobID, JobStatus.valueOf(columnList.get(4)));
-                    found = true;
                     break;
                 }
             }
-            if (!found) {
-                log.error("Couldn't find the status of the Job with JobName: " + jobName
+ "Job Id: " + jobId);
-            }
         }
     }
 }


Mime
View raw message