airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: fixing job Id not properly extracted, this will be usedin cancel
Date Thu, 02 Oct 2014 02:36:50 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 9372890ca -> 3800bc19b


fixing job Id not properly extracted, this will be usedin cancel


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

Branch: refs/heads/master
Commit: 3800bc19b6eb80314fb18d4d292aed72e88a3b73
Parents: 9372890
Author: lahiru <lahiru@apache.org>
Authored: Wed Oct 1 22:36:43 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Wed Oct 1 22:36:43 2014 -0400

----------------------------------------------------------------------
 .../airavata/gfac/gsissh/provider/impl/GSISSHProvider.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/3800bc19/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/provider/impl/GSISSHProvider.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/provider/impl/GSISSHProvider.java
b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/provider/impl/GSISSHProvider.java
index 97f775f..b5a325a 100644
--- a/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/provider/impl/GSISSHProvider.java
+++ b/modules/gfac/gfac-gsissh/src/main/java/org/apache/airavata/gfac/gsissh/provider/impl/GSISSHProvider.java
@@ -106,14 +106,14 @@ public class GSISSHProvider extends AbstractRecoverableProvider {
                 jobDetails.setJobID("none");
                 GFacUtils.saveJobStatus(jobExecutionContext, jobDetails, JobState.FAILED);
             } else {
-                jobDetails.setJobID(jobID);
+                jobDetails.setJobID(jobID.split("\\.")[0]);
                 GFacUtils.saveJobStatus(jobExecutionContext, jobDetails, JobState.SUBMITTED);
             }
             data.append(",jobId=").append(jobDetails.getJobID());
 
             // Now job has submitted to the resource, its up to the Provider to parse the
information to daemon handler
             // to perform monitoring, daemon handlers can be accessed from anywhere
-            delegateToMonitorHandlers(jobExecutionContext, (GsisshHostType) host, jobID);
+            delegateToMonitorHandlers(jobExecutionContext, (GsisshHostType) host, jobDetails.getJobID());
             // we know this host is type GsiSSHHostType
         } catch (Exception e) {
 		    String error = "Error submitting the job to host " + host.getHostAddress() + " message:
" + e.getMessage();


Mime
View raw message