mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: the problem of saving frequent job
This commit is contained in:
parent
812d71f090
commit
a9a0422de1
@ -252,7 +252,7 @@ public class JobService {
|
||||
// 计算下次调度时间
|
||||
if (TimeExpressionType.FREQUENT_TYPES.contains(jobInfo.getTimeExpressionType())) {
|
||||
// 固定频率类型的任务不计算
|
||||
jobInfo.setTimeExpression(null);
|
||||
jobInfo.setNextTriggerTime(null);
|
||||
} else {
|
||||
LifeCycle lifeCycle = LifeCycle.parse(jobInfo.getLifecycle());
|
||||
Long nextValidTime = timingStrategyService.calculateNextTriggerTimeWithInspection(TimeExpressionType.of(jobInfo.getTimeExpressionType()), jobInfo.getTimeExpression(), lifeCycle.getStart(), lifeCycle.getEnd());
|
||||
|
Loading…
x
Reference in New Issue
Block a user