git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineSmartExecutor@150990 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
cd00157ca3
commit
bcdad87778
|
@ -140,12 +140,16 @@ public class WPSJobManager {
|
||||||
else if (result.contains(GenericWorker.TASK_SUCCESS))
|
else if (result.contains(GenericWorker.TASK_SUCCESS))
|
||||||
success = true;
|
success = true;
|
||||||
else if (result.contains("<wps:ProcessAccepted>Process Accepted</wps:ProcessAccepted>")) {
|
else if (result.contains("<wps:ProcessAccepted>Process Accepted</wps:ProcessAccepted>")) {
|
||||||
|
if (result.contains("<ows:Exception ")) {
|
||||||
|
failure = true;
|
||||||
|
}else{
|
||||||
statusLocation = result.substring(result.indexOf("statusLocation=") + "statusLocation=".length());
|
statusLocation = result.substring(result.indexOf("statusLocation=") + "statusLocation=".length());
|
||||||
statusLocation = statusLocation.substring(0, statusLocation.indexOf(">"));
|
statusLocation = statusLocation.substring(0, statusLocation.indexOf(">"));
|
||||||
statusLocation = statusLocation.replace("\"", "");
|
statusLocation = statusLocation.replace("\"", "");
|
||||||
statusLocation = statusLocation + "&gcube-token=" + token;
|
statusLocation = statusLocation + "&gcube-token=" + token;
|
||||||
// AnalysisLogger.getLogger().debug("Status Location: " + statusLocation);
|
// AnalysisLogger.getLogger().debug("Status Location: " + statusLocation);
|
||||||
result= "";
|
result= "";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Thread.sleep(pollingTime);
|
Thread.sleep(pollingTime);
|
||||||
taskTimeCounter+=pollingTime;
|
taskTimeCounter+=pollingTime;
|
||||||
|
|
Loading…
Reference in New Issue