RickyHu opened a new issue, #15610:
URL: https://github.com/apache/dolphinscheduler/issues/15610

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
         工作流的调度时间是每日0点整,现在操作运行补数,设置时间为某一日的 
00:00:00~23:59:59,运行之后理论上只会产生这一天0点一个实例,但实际结果是产生了这一天以及第二天的0点两个实例:
   
![image](https://github.com/apache/dolphinscheduler/assets/5569345/b88d3e95-b065-41ac-ae90-8c9011964357)
   
![image](https://github.com/apache/dolphinscheduler/assets/5569345/4dda3d13-37f9-4ad1-b6e9-7d572def463d)
   
![image](https://github.com/apache/dolphinscheduler/assets/5569345/79042580-7bb1-476b-a686-f7b531cd4d17)
         
后面我debug源码,发现在获取补数范围内的所有调度时间时的一段代码:org.apache.dolphinscheduler.service.cron.CronUtils.getSelfFireDateList
   
![image](https://github.com/apache/dolphinscheduler/assets/5569345/70e99abd-20ea-4719-b79f-b3be2e17e65e)
   
![image](https://github.com/apache/dolphinscheduler/assets/5569345/b4c3e066-c43e-474a-9e09-c439023c80a1)
         为支持左闭右闭时间区间,将开始时间减1s,结束时间加1s,变成了 昨日23:59:59~次日00:00:00,在后面的搜寻两个调度时间点。
         
   
   
   
   
   ### What you expected to happen
   
   希望快点修复这个调度临界值问题
   
   ### How to reproduce
   
   这个问题在补数的时候很容易复现,只要补数范围的结束时间正好比调度时间点晚1s,最终产生的部署实例都会比预期多出一个。
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.2.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to