use of pipelite.stage.executor.StageExecutorResult in project pipelite by enasequence.
the class AbstractLsfExecutor method bhist.
private static String bhist(CmdRunner cmdRunner, String jobId) {
log.atWarning().log("Checking LSF job results using bhist: " + jobId);
StageExecutorResult bhistResult = cmdRunner.execute(BHIST_CMD + jobId);
return bhistResult.getStageLog();
}
use of pipelite.stage.executor.StageExecutorResult in project pipelite by enasequence.
the class AbstractLsfExecutor method recoverJobUsingBhist.
private static boolean recoverJobUsingBhist(CmdRunner cmdRunner, JobResult jobResult) {
StageExecutorResult executorResult = extractResultFromBhistOutputOrOutFile(bhist(cmdRunner, jobResult.jobId));
if (executorResult != null) {
log.atInfo().log("Recovered job result using LSF bhist for job: " + jobResult.jobId);
jobResult.result = executorResult;
return true;
} else {
log.atWarning().log("Could not recover job result using LSF bhist for job: " + jobResult.jobId);
return false;
}
}
use of pipelite.stage.executor.StageExecutorResult in project pipelite by enasequence.
the class DescribeJobs method getResult.
/**
* Returns the stage executor result (active, success, error) for the describe job request. If the
* result is success or error then the request is removed.
*
* @param request the request
* @return the result
* @throws PipeliteTimeoutException if no result has been available for a request within the
* request timeout
*/
public StageExecutorResult getResult(RequestContext request, List<Integer> permanentErrors) {
if (!this.requests.containsKey(request)) {
addRequest(request);
}
StageExecutorResult result = this.requests.get(request);
if (!result.isActive()) {
removeRequest(request);
setPermanentError(result, permanentErrors);
}
return result;
}
Aggregations