try
{
msjob.alignment = server.getResult(msjob.getJobId());
- } catch (Exception e)
+ } catch (compbio.metadata.ResultNotAvailableException e)
+ {
+ // job has failed for some reason - probably due to invalid parameters
+ Cache.log.debug("Results not available for finished job - marking as broken job.",e);
+ msjob.setjobStatus(JobStatus.FAILED);
+ }
+ catch (Exception e)
{
Cache.log.error("Couldn't get Alignment for job.", e);
+ // TODO: Increment count and retry ?
+ msjob.setjobStatus(JobStatus.UNDEFINED);
}
}
finalState.updateJobPanelState(wsInfo, OutputHeader, jobs[j]);
}
else
{
+ wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_ERROR);
wsInfo.setFinishedNoResults();
}
}