if (lastInstanceStartTime == null) {
LOG.info("Running bundle status service first instance");
// This is the first instance, we need to check for all pending or running jobs;
// TODO currently limit is = -1. Need to do actual batching
pendingJobCheckList = jpaService.execute(new BundleJobsGetRunningOrPendingJPAExecutor(limit));
}
else {
LOG.info("Running bundle status service from last instance time = "
+ DateUtils.formatDateOozieTZ(lastInstanceStartTime));
// this is not the first instance, we should only check jobs that have actions been