git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@151070 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
536e5679e3
commit
93cb62ab99
|
@ -28,7 +28,7 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
||||||
|
|
||||||
public StagingJob(SVNUpdater svnUpdater, Algorithm algorithm,
|
public StagingJob(SVNUpdater svnUpdater, Algorithm algorithm,
|
||||||
Cluster stagingCluster, /* Cluster rProtoCluster, */
|
Cluster stagingCluster, /* Cluster rProtoCluster, */
|
||||||
String rProtoVREName) ***REMOVED***
|
String rProtoVREName) throws FileNotFoundException, UnsupportedEncodingException ***REMOVED***
|
||||||
super(svnUpdater);
|
super(svnUpdater);
|
||||||
this.jobLogs = new File(
|
this.jobLogs = new File(
|
||||||
System.getProperty("user.home") + File.separator + "dataminer-pool-manager" + File.separator + "jobs");
|
System.getProperty("user.home") + File.separator + "dataminer-pool-manager" + File.separator + "jobs");
|
||||||
|
@ -38,6 +38,13 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
||||||
this.stagingCluster = stagingCluster;
|
this.stagingCluster = stagingCluster;
|
||||||
***REMOVED*** this.rProtoCluster = rProtoCluster;
|
***REMOVED*** this.rProtoCluster = rProtoCluster;
|
||||||
this.rProtoVREName = rProtoVREName;
|
this.rProtoVREName = rProtoVREName;
|
||||||
|
|
||||||
|
|
||||||
|
File m = new File(this.jobLogs + File.separator + this.id + "_exitStatus");
|
||||||
|
PrintWriter writer = new PrintWriter(m, "UTF-8");
|
||||||
|
writer.println(this.getStatus(0));
|
||||||
|
writer.close();
|
||||||
|
|
||||||
***REMOVED***
|
***REMOVED***
|
||||||
|
|
||||||
***REMOVED***
|
***REMOVED***
|
||||||
|
@ -66,12 +73,12 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
||||||
|
|
||||||
int ret = this.executeAnsibleWorker(createWorker(this.algorithm, this.stagingCluster, false, "root"));
|
int ret = this.executeAnsibleWorker(createWorker(this.algorithm, this.stagingCluster, false, "root"));
|
||||||
|
|
||||||
Integer s = null;
|
***REMOVED*** Integer s = null;
|
||||||
s = Integer.valueOf(ret);
|
***REMOVED*** s = Integer.valueOf(ret);
|
||||||
|
***REMOVED***
|
||||||
if (s == null) ***REMOVED***
|
***REMOVED*** if (s == null) ***REMOVED***
|
||||||
this.getStatus(0);
|
***REMOVED*** this.getStatus(0);
|
||||||
***REMOVED***
|
***REMOVED*** ***REMOVED***
|
||||||
|
|
||||||
if (ret != 0) ***REMOVED***
|
if (ret != 0) ***REMOVED***
|
||||||
this.getStatus(2);
|
this.getStatus(2);
|
||||||
|
@ -104,7 +111,6 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
||||||
public String getStatus(int exitstatus) throws FileNotFoundException, UnsupportedEncodingException ***REMOVED***
|
public String getStatus(int exitstatus) throws FileNotFoundException, UnsupportedEncodingException ***REMOVED***
|
||||||
|
|
||||||
File m = new File(this.jobLogs + File.separator + this.id + "_exitStatus");
|
File m = new File(this.jobLogs + File.separator + this.id + "_exitStatus");
|
||||||
|
|
||||||
PrintWriter writer = new PrintWriter(m, "UTF-8");
|
PrintWriter writer = new PrintWriter(m, "UTF-8");
|
||||||
|
|
||||||
String response = "";
|
String response = "";
|
||||||
|
|
Loading…
Reference in New Issue