FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: 修复每日定时策略的执行时间计算错误问题 by SlientGale · Pull Request #1152 · PowerJob/PowerJob · GitHub

Repository navigation

fix: 修复每日定时策略的执行时间计算错误问题 - #1152

Open
SlientGale wants to merge 1 commit into
PowerJob:masterfrom
SlientGale:master
Open

SlientGale wants to merge 1 commit into
PowerJob:masterfrom
SlientGale:master

Conversation

Copy link
Copy Markdown

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

本地拉取源码,应用修改后运行上述测试用例,通过;

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL