You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by Jay Sen <ja...@apache.org> on 2019/08/26 16:48:13 UTC
Job Completion Vs Succeeded?
Hi Guys,
we came across this code snippet which registers jobListner
for JobCompleteTimer and JobSucceededTimer event and looks like
JobSucceededTimer event calls onJobFailure function instead of onJobSucced
function.
notifyListeners(this.jobContext, jobListener,
TimingEvent.LauncherTimings.JOB_SUCCEEDED, new JobListenerAction() {
@Override
public void apply(JobListener jobListener, JobContext jobContext)
throws Exception {
jobListener.onJobFailure(jobContext);
}
});
This seems like a bug, but also there is no onJobSucceed method, so
wondering what is the difference between job completion and job success.
btw, Qinghe from our team found this, just reporting on behalf of him on
this thread.
Thanks
Jay