You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ch...@apache.org on 2016/01/26 18:13:39 UTC

airavata git commit: validate job submission output for lonestar

Repository: airavata
Updated Branches:
  refs/heads/develop e2b295127 -> fa4c18762


validate job submission output for lonestar


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

Branch: refs/heads/develop
Commit: fa4c1876244fead06addc49cd75d256594925089
Parents: e2b2951
Author: Chathuri Wimalasena <ch...@apache.org>
Authored: Tue Jan 26 12:15:07 2016 -0500
Committer: Chathuri Wimalasena <ch...@apache.org>
Committed: Tue Jan 26 12:15:07 2016 -0500

----------------------------------------------------------------------
 .../java/org/apache/airavata/gfac/impl/job/UGEOutputParser.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/fa4c1876/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/UGEOutputParser.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/UGEOutputParser.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/UGEOutputParser.java
index e5249e0..1c39258 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/UGEOutputParser.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/job/UGEOutputParser.java
@@ -126,7 +126,7 @@ public class UGEOutputParser implements OutputParser {
 
 	public String parseJobSubmission(String rawOutput) {
 		log.debug(rawOutput);
-		if (rawOutput != null && !rawOutput.isEmpty()) {
+		if (rawOutput != null && !rawOutput.isEmpty() && !isJobSubmissionFailed(rawOutput)) {
 			String[] info = rawOutput.split("\n");
 			String lastLine = info[info.length - 1];
 			return lastLine.split(" ")[2]; // In PBS stdout is going to be directly the jobID