Task<? extends Serializable> tsk = runnable.remove();
curJobNo = launchTask(tsk, queryId, noName,running, jobname, jobs, curJobNo);
}
// poll the Tasks to see which one completed
TaskResult tskRes = pollTasks(running.keySet());
TaskRunner tskRun = running.remove(tskRes);
Task<? extends Serializable> tsk = tskRun.getTask();
int exitVal = tskRes.getExitVal();
if(exitVal != 0) {
//TODO: This error messaging is not very informative. Fix that.
errorMessage = "FAILED: Execution Error, return code " + exitVal
+ " from " + tsk.getClass().getName();
SQLState = "08S01";