update document
This commit is contained in:
parent
2247be23b1
commit
4c0a960f72
|
@ -270,8 +270,8 @@ public class JobScheduleHelper {
|
||||||
ringThread.start();
|
ringThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshNextValidTime(XxlJobInfo jobInfo, Date date) throws ParseException {
|
private void refreshNextValidTime(XxlJobInfo jobInfo, Date fromTime) throws ParseException {
|
||||||
Date nextValidTime = new CronExpression(jobInfo.getJobCron()).getNextValidTimeAfter(date);
|
Date nextValidTime = new CronExpression(jobInfo.getJobCron()).getNextValidTimeAfter(fromTime);
|
||||||
if (nextValidTime != null) {
|
if (nextValidTime != null) {
|
||||||
jobInfo.setTriggerLastTime(jobInfo.getTriggerNextTime());
|
jobInfo.setTriggerLastTime(jobInfo.getTriggerNextTime());
|
||||||
jobInfo.setTriggerNextTime(nextValidTime.getTime());
|
jobInfo.setTriggerNextTime(nextValidTime.getTime());
|
||||||
|
|
Loading…
Reference in New Issue