fix(测试跟踪): 测试计划关闭定时任务失效

--bug=1011355
--user=郭雨琦
【测试跟踪】-测试计划-任务配置-定时任务开启后,再关闭,定时任务一直仍处于开启状态
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001011355
This commit is contained in:
guoyuqi 2022-03-21 13:20:54 +08:00 committed by 刘瑞斌
parent dedd7c30e4
commit cbacc756e1

View File

@ -180,6 +180,9 @@ public class ScheduleService {
LogUtil.error(e);
MSException.throwException("重置定时任务-删除旧定时任务时出现异常");
}
if(!request.getEnable()){
return;
}
try {
scheduleManager.addCronJob(jobKey, triggerKey, clazz, request.getValue(),
scheduleManager.getDefaultJobDataMap(request, request.getValue(), SessionUtils.getUser().getId()));