mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
fix(测试跟踪): 测试计划关闭定时任务失效
--bug=1011355 --user=郭雨琦 【测试跟踪】-测试计划-任务配置-定时任务开启后,再关闭,定时任务一直仍处于开启状态 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001011355
This commit is contained in:
parent
dedd7c30e4
commit
cbacc756e1
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user