修改下次执行时间的计算方式
This commit is contained in:
parent
9a1e181d39
commit
6f7544e5c4
@ -74,7 +74,7 @@ public class SpiderFlowService extends ServiceImpl<SpiderFlowMapper, SpiderFlow>
|
||||
.withIdentity("Caclulate Next Execute Date")
|
||||
.withSchedule(CronScheduleBuilder.cronSchedule(cron))
|
||||
.build();
|
||||
sfMapper.resetCornExpression(id, cron, trigger.getStartTime());
|
||||
sfMapper.resetCornExpression(id, cron, trigger.getFireTimeAfter(null));
|
||||
spiderJobManager.remove(id);
|
||||
SpiderFlow spiderFlow = getById(id);
|
||||
if("1".equals(spiderFlow.getEnabled()) && StringUtils.isNotEmpty(spiderFlow.getCron())){
|
||||
|
Loading…
Reference in New Issue
Block a user