@Override public JobSubmissionResult executeInternal(String jobName, boolean detached) throws Exception { PlanExecutor executor = getExecutor(); Plan p = createProgramPlan(jobName); // Session management is disabled, revert this commit to enable p.setJobId(jobID); p.setSessionTimeout(sessionTimeout); JobSubmissionResult result = executor.executePlan(p, detached); if (result != null && result.isJobExecutionResult()) { this.lastJobExecutionResult = (JobExecutionResult) result; } return result; }
@Override public JobSubmissionResult executeInternal(String jobName, boolean detached) throws Exception { if (executor == null) { startNewSession(); } Plan p = createProgramPlan(jobName); // Session management is disabled, revert this commit to enable p.setJobId(jobID); p.setSessionTimeout(sessionTimeout); JobSubmissionResult result = executor.executePlan(p, detached); if (result.isJobExecutionResult()) { this.lastJobExecutionResult = (JobExecutionResult) result; } return result; }