优化任务过期不执行调度

This commit is contained in:
RuoYi
2022-07-30 13:49:36 +08:00
parent 67a6841043
commit 1295177393
4 changed files with 18 additions and 6 deletions

View File

@@ -168,8 +168,8 @@ public class SysJobController extends BaseController
@PutMapping("/run")
public AjaxResult run(@RequestBody SysJob job) throws SchedulerException
{
jobService.run(job);
return AjaxResult.success();
boolean result = jobService.run(job);
return result ? success() : error("任务不存在或已过期!");
}
/**