@Override public Task createNewTask(TaskCallbackContext context) { return new GobblinHelixJobTask(context, this.jobsMapping, this.builder, this.launcherMetrics, this.jobTaskMetrics, this.helixMetrics); } }
/** * Launch the actual {@link GobblinHelixJobLauncher}. */ @Override public TaskResult run() { log.info("Running planning job {}", this.planningJobId); this.jobTaskMetrics.updateTimeBetweenJobSubmissionAndExecution(this.jobPlusSysConfig); try (Closer closer = Closer.create()) { this.launcher = createJobLauncher(); closer.register(launcher).launchJob(this.jobLauncherListener); setResultToUserContent(ImmutableMap.of(Partitioner.IS_EARLY_STOPPED, "false")); } catch (Exception e) { return new TaskResult(TaskResult.Status.FAILED, "Exception occurred for job " + planningJobId + ":" + ExceptionUtils .getFullStackTrace(e)); } return new TaskResult(TaskResult.Status.COMPLETED, ""); }
this.launcher = createJobLauncher();
@Override public Task createNewTask(TaskCallbackContext context) { return new GobblinHelixJobTask(context, this.stateStores, this.builder, this.launcherMetrics, this.jobTaskMetrics); } }