Skip to content

Commit

Permalink
【优化】调度线程任务信息更新逻辑优化,避免极端情况下已关闭任务被启动问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxueli committed Nov 30, 2024
1 parent 267c1dd commit ed2c4fe
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/XXL-JOB官方文档.md
Original file line number Diff line number Diff line change
Expand Up @@ -2401,11 +2401,12 @@ public void execute() {
### 7.36 版本 v2.5.0 Release Notes[规划中]
- 1、【优化】框架底层守护线程异常处理逻辑优化,避免极端情况下因Error导致调度终止、丢失问题。
- 1、【优化】框架基础守护线程异常处理逻辑优化,避免极端情况下因Error导致调度终止问题;
- 2、【优化】部分系统日志优化,提升可读性;
- 3、[规划中]升级springboot3.x,解决2.x老版本漏洞类问题。注意,springboot3.x依赖jdk17。
- 4、[规划中]安全功能增强,通讯加密参数改用加密数据避免AccessToken明文, 降低token泄漏风险。
- 5、[规划中]登陆态Token声称逻辑优化,混淆登陆时间属性,降低token泄漏风险。
- 3、【优化】调度线程任务信息更新逻辑优化,避免极端情况下已关闭任务被启动问题;
- 4、[规划中]升级springboot3.x,解决2.x老版本漏洞类问题。注意,springboot3.x依赖jdk17;
- 5、[规划中]安全功能增强,通讯加密参数改用加密数据避免AccessToken明文, 降低token泄漏风险;
- 6、[规划中]登陆态Token声称逻辑优化,混淆登陆时间属性,降低token泄漏风险;
### TODO LIST
- 1、调度隔离:调度中心针对不同执行器,各自维护不同的调度和远程触发组件。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,21 @@ public int pageListCount(@Param("offset") int offset,

public int findAllCount();

/**
* find schedule job, limit "trigger_status = 1"
*
* @param maxNextTime
* @param pagesize
* @return
*/
public List<XxlJobInfo> scheduleJobQuery(@Param("maxNextTime") long maxNextTime, @Param("pagesize") int pagesize );

/**
* update schedule job, limit "trigger_status = 1"(avoid stopping tasks from being opened)
*
* @param xxlJobInfo
* @return
*/
public int scheduleUpdate(XxlJobInfo xxlJobInfo);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
trigger_next_time = #{triggerNextTime},
trigger_status = #{triggerStatus}
WHERE id = #{id}
AND trigger_status = 1
</update>

</mapper>

0 comments on commit ed2c4fe

Please sign in to comment.