jobManager.reschedule(historyCleanupJob, newDueDate);
jobManager.reschedule(historyCleanupJob, newDueDate);
protected void rescheduleRegularCall(CommandContext commandContext, JobEntity jobEntity) { final BatchWindow nextBatchWindow = commandContext.getProcessEngineConfiguration().getBatchWindowManager() .getNextBatchWindow(ClockUtil.getCurrentTime(), commandContext.getProcessEngineConfiguration()); if (nextBatchWindow != null) { commandContext.getJobManager().reschedule(jobEntity, nextBatchWindow.getStart()); } else { LOG.warnHistoryCleanupBatchWindowNotFound(); suspendJob(jobEntity); } }
protected void rescheduleRegularCall(CommandContext commandContext, JobEntity jobEntity) { final BatchWindow nextBatchWindow = commandContext.getProcessEngineConfiguration().getBatchWindowManager() .getNextBatchWindow(ClockUtil.getCurrentTime(), commandContext.getProcessEngineConfiguration()); if (nextBatchWindow != null) { commandContext.getJobManager().reschedule(jobEntity, nextBatchWindow.getStart()); } else { LOG.warnHistoryCleanupBatchWindowNotFound(); suspendJob(jobEntity); } }
commandContext.getJobManager().reschedule(jobEntity, ClockUtil.getCurrentTime()); rescheduled = true; cancelCountEmptyRuns(configuration, jobEntity); Date nextRunDate = configuration.getNextRunWithDelay(ClockUtil.getCurrentTime()); if (HistoryCleanupHelper.isWithinBatchWindow(nextRunDate, commandContext.getProcessEngineConfiguration())) { commandContext.getJobManager().reschedule(jobEntity, nextRunDate); rescheduled = true; incrementCountEmptyRuns(configuration, jobEntity);
commandContext.getJobManager().reschedule(jobEntity, ClockUtil.getCurrentTime()); rescheduled = true; cancelCountEmptyRuns(configuration, jobEntity); Date nextRunDate = configuration.getNextRunWithDelay(ClockUtil.getCurrentTime()); if (HistoryCleanupHelper.isWithinBatchWindow(nextRunDate, commandContext.getProcessEngineConfiguration())) { commandContext.getJobManager().reschedule(jobEntity, nextRunDate); rescheduled = true; incrementCountEmptyRuns(configuration, jobEntity);
jobManager.reschedule(historyCleanupJob, newDueDate);
protected void rescheduleRegularCall(CommandContext commandContext, JobEntity jobEntity) { final BatchWindow nextBatchWindow = commandContext.getProcessEngineConfiguration().getBatchWindowManager() .getNextBatchWindow(ClockUtil.getCurrentTime(), commandContext.getProcessEngineConfiguration()); if (nextBatchWindow != null) { commandContext.getJobManager().reschedule(jobEntity, nextBatchWindow.getStart()); } else { LOG.warnHistoryCleanupBatchWindowNotFound(); suspendJob(jobEntity); } }
commandContext.getJobManager().reschedule(jobEntity, ClockUtil.getCurrentTime()); rescheduled = true; cancelCountEmptyRuns(configuration, jobEntity); Date nextRunDate = configuration.getNextRunWithDelay(ClockUtil.getCurrentTime()); if (HistoryCleanupHelper.isWithinBatchWindow(nextRunDate, commandContext.getProcessEngineConfiguration())) { commandContext.getJobManager().reschedule(jobEntity, nextRunDate); rescheduled = true; incrementCountEmptyRuns(configuration, jobEntity);