fix(定时任务): 修复设置一个过去时刻的定时问题没有把异常信息提示出来的问题
--bug=1022623 --user=刘瑞斌 【性能测试】github#21616,性能测试定时任务cron表达式小于当前时间保存时报错 https://www.tapd.cn/55049933/s/1333145 Closes 21616
This commit is contained in:
parent
ec042ec6e0
commit
d24023c985
|
@ -1,6 +1,7 @@
|
|||
package io.metersphere.sechedule;
|
||||
|
||||
import io.metersphere.base.domain.Schedule;
|
||||
import io.metersphere.commons.exception.MSException;
|
||||
import io.metersphere.commons.utils.LogUtil;
|
||||
import org.quartz.*;
|
||||
|
||||
|
@ -81,7 +82,7 @@ public class ScheduleManager {
|
|||
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
throw new RuntimeException(e);
|
||||
MSException.throwException("定时任务配置异常: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue