diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java index e1502be46e..3dd401bbaa 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/BaseTaskHubService.java @@ -279,13 +279,8 @@ public class BaseTaskHubService { item.setNextTime(trigerTimeMap.get(item.getResourceId()).getNextTime()); item.setLastTime(trigerTimeMap.get(item.getResourceId()).getLastTime()); } else { - try { - CronExpression cron = new CronExpression(item.getValue()); - Date date = new Date(System.currentTimeMillis()); - item.setNextTime(cron.getNextValidTimeAfter(date).getTime()); - } catch (ParseException e) { - LogUtils.error(e); - } + item.setNextTime(item.getNextTime()); + item.setLastTime(item.getLastTime()); } } }