if( toRetry ) {
// re-try
_polledRunnableExec.submit(new Runnable() {
public void run() {
try {
MapSerializableRunnable runnable = (MapSerializableRunnable)jobInfo.jobDetail.getDetailsExt().get("runnable");
runnable.restoreFromDetails(jobInfo.jobDetail);
if( runnable instanceof ContextsAware ) {
((ContextsAware)runnable).setContexts(_contexts);
}
runnable.run();
synchronized( resultsByJobId ) {
resultsByJobId.put(jobInfo.jobName, new PolledRunnableResults(JOB_STATUS.COMPLETED, null));
}
} catch( Exception e) {
__log.error("", e);