mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: NPE in FrequentScheduler
This commit is contained in:
parent
7539faffff
commit
812d71f090
@ -255,7 +255,7 @@ public class PowerScheduleService {
|
|||||||
log.info("[FrequentScheduler] disable frequent job,id:{}.", jobInfoDO.getId());
|
log.info("[FrequentScheduler] disable frequent job,id:{}.", jobInfoDO.getId());
|
||||||
} else if (lifeCycle.getStart() == null || lifeCycle.getStart() < System.currentTimeMillis() + SCHEDULE_RATE * 2) {
|
} else if (lifeCycle.getStart() == null || lifeCycle.getStart() < System.currentTimeMillis() + SCHEDULE_RATE * 2) {
|
||||||
log.info("[FrequentScheduler] schedule frequent job,id:{}.", jobInfoDO.getId());
|
log.info("[FrequentScheduler] schedule frequent job,id:{}.", jobInfoDO.getId());
|
||||||
jobService.runJob(jobInfoDO.getAppId(), jobId, null, Optional.of(lifeCycle.getStart()).orElse(0L) - System.currentTimeMillis());
|
jobService.runJob(jobInfoDO.getAppId(), jobId, null, Optional.ofNullable(lifeCycle.getStart()).orElse(0L) - System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user