git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@151136 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
619156bcc6
commit
1217ed589b
|
@ -39,7 +39,6 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
|||
***REMOVED*** this.rProtoCluster = rProtoCluster;
|
||||
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));
|
||||
|
@ -73,16 +72,11 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
|||
|
||||
int ret = this.executeAnsibleWorker(createWorker(this.algorithm, this.stagingCluster, false, "root"));
|
||||
|
||||
***REMOVED*** Integer s = null;
|
||||
***REMOVED*** s = Integer.valueOf(ret);
|
||||
***REMOVED***
|
||||
***REMOVED*** if (s == null) ***REMOVED***
|
||||
***REMOVED*** this.getStatus(0);
|
||||
***REMOVED*** ***REMOVED***
|
||||
|
||||
if (ret != 0) ***REMOVED***
|
||||
this.getStatus(2);
|
||||
sm.sendNotification(nh.getFailedSubject(), nh.getFailedBody("Installation failed. Return code=" + ret));
|
||||
return;
|
||||
***REMOVED***
|
||||
|
||||
if (ret == 0) ***REMOVED***
|
||||
|
@ -99,12 +93,16 @@ public class StagingJob extends DMPMJob ***REMOVED***
|
|||
|
||||
this.getStatus(9);
|
||||
sm.sendNotification(nh.getSuccessSubject(), nh.getSuccessBody());
|
||||
return;
|
||||
***REMOVED*** else
|
||||
this.getStatus(2);
|
||||
sm.sendNotification(nh.getFailedSubject(),
|
||||
nh.getFailedBody("Installation completed but DataMiner Interface not working correctly or files " + this.algorithm.getName()
|
||||
+ ".jar and " + this.algorithm.getName()
|
||||
+ "_interface.jar not availables at the expected path"));
|
||||
nh.getFailedBody(
|
||||
"Installation completed but DataMiner Interface not working correctly or files "
|
||||
+ this.algorithm.getName() + ".jar and " + this.algorithm.getName()
|
||||
+ "_interface.jar not availables at the expected path"));
|
||||
return;
|
||||
|
||||
***REMOVED***
|
||||
***REMOVED*** catch (Exception e) ***REMOVED***
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue