This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
配置一个每日定时任务,设置如下:
执行时间区间:18:00 - 19:10
切换间隔:30 分钟
当前系统时间为:17:50
此时调用获取该任务执行时间列表的逻辑,返回了错误的结果,导致任务未能在 18:00、18:30、19:00 正确触发。
Brief changelog
修复 DailyTimeRangeScheduler(或相关调度工具类)中,当前时间早于时间窗口起点时错误执行时间计算问题
Verifying this change
本地拉取源码,应用修改后运行上述测试用例,通过;