File tree 2 files changed +12
-2
lines changed
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2461,8 +2461,9 @@ public void execute() {
2461
2461
- b、从该版本(v3.0.x)开始基于 SpringBoot3 + JDK17 构建,
2462
2462
2463
2463
### 7.38 版本 v3.0.1 Release Notes[规划中]
2464
- - 1、[规划中]登陆态Token生成逻辑优化,混淆登陆时间属性,降低token泄漏风险;
2465
- - 2、[规划中]组件扫描改为BeanPostProcessor方式,避免小概率情况下提前初始化;底层组件移除单例写法,汇总factory统一管理;
2464
+ - 1、【修复】任务操作逻辑优化,修复边界情况下逻辑中断问题(ISSUE-2081)。
2465
+ - 2、[规划中]登陆态Token生成逻辑优化,混淆登陆时间属性,降低token泄漏风险;
2466
+ - 3、[规划中]组件扫描改为BeanPostProcessor方式,避免小概率情况下提前初始化;底层组件移除单例写法,汇总factory统一管理;
2466
2467
2467
2468
### TODO LIST
2468
2469
- 1、调度隔离:调度中心针对不同执行器,各自维护不同的调度和远程触发组件。
Original file line number Diff line number Diff line change @@ -320,7 +320,11 @@ public ReturnT<String> remove(int id) {
320
320
321
321
@ Override
322
322
public ReturnT <String > start (int id ) {
323
+ // load and valid
323
324
XxlJobInfo xxlJobInfo = xxlJobInfoDao .loadById (id );
325
+ if (xxlJobInfo == null ) {
326
+ return new ReturnT <String >(ReturnT .FAIL .getCode (), I18nUtil .getString ("jobinfo_glue_jobid_unvalid" ));
327
+ }
324
328
325
329
// valid
326
330
ScheduleTypeEnum scheduleTypeEnum = ScheduleTypeEnum .match (xxlJobInfo .getScheduleType (), ScheduleTypeEnum .NONE );
@@ -352,8 +356,13 @@ public ReturnT<String> start(int id) {
352
356
353
357
@ Override
354
358
public ReturnT <String > stop (int id ) {
359
+ // load and valid
355
360
XxlJobInfo xxlJobInfo = xxlJobInfoDao .loadById (id );
361
+ if (xxlJobInfo == null ) {
362
+ return new ReturnT <String >(ReturnT .FAIL .getCode (), I18nUtil .getString ("jobinfo_glue_jobid_unvalid" ));
363
+ }
356
364
365
+ // stop
357
366
xxlJobInfo .setTriggerStatus (0 );
358
367
xxlJobInfo .setTriggerLastTime (0 );
359
368
xxlJobInfo .setTriggerNextTime (0 );
You can’t perform that action at this time.
0 commit comments