String coordEnd = DateUtils.convertDateToString(coordJob.getEndTime());
rerunDateScope = coordStart + "::" + coordEnd;
}
LOG.debug("Queuing rerun range [" + rerunDateScope + "] for coord id " + coordId + " of bundle "
+ bundleJob.getId());
queue(new CoordRerunXCommand(coordId, RestConstants.JOB_COORD_RERUN_DATE, rerunDateScope, refresh,
noCleanup));
updateBundleAction(coordNameToBAMapping.get(coordName));
isUpdateActionDone = true;
}
else {
LOG.info("Rerun for coord " + coordName + " NOT performed because it is not in bundle ", bundleJob.getId());
}
}
}
else if (dateScope != null && !dateScope.isEmpty()) {
if (bundleActions != null) {
for (BundleActionBean action : bundleActions) {
if (action.getCoordId() == null) {
LOG.info("No coord id found. Therefore nothing to queue for coord rerun with coord name "
+ action.getCoordName());
continue;
}
LOG.debug("Queuing rerun range [" + dateScope + "] for coord id " + action.getCoordId() + " of bundle "
+ bundleJob.getId());
queue(new CoordRerunXCommand(action.getCoordId(), RestConstants.JOB_COORD_RERUN_DATE, dateScope,
refresh, noCleanup));
updateBundleAction(action);
isUpdateActionDone = true;
}
}