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