|
@@ -270,8 +270,8 @@ public class JobScheduleHelper {
|
270
|
270
|
ringThread.start();
|
271
|
271
|
}
|
272
|
272
|
|
273
|
|
- private void refreshNextValidTime(XxlJobInfo jobInfo, Date date) throws ParseException {
|
274
|
|
- Date nextValidTime = new CronExpression(jobInfo.getJobCron()).getNextValidTimeAfter(date);
|
|
273
|
+ private void refreshNextValidTime(XxlJobInfo jobInfo, Date fromTime) throws ParseException {
|
|
274
|
+ Date nextValidTime = new CronExpression(jobInfo.getJobCron()).getNextValidTimeAfter(fromTime);
|
275
|
275
|
if (nextValidTime != null) {
|
276
|
276
|
jobInfo.setTriggerLastTime(jobInfo.getTriggerNextTime());
|
277
|
277
|
jobInfo.setTriggerNextTime(nextValidTime.getTime());
|