light-task-scheduler icon indicating copy to clipboard operation
light-task-scheduler copied to clipboard

retryhandler处理repeat job的bug-卢松

Open lusong1986 opened this issue 7 years ago • 0 comments

假如job repeatCount为5,重试次数设置为5次,那么前面4次repeat都会比较retry的时间和下次repeat job的时间. 而最后一次repeat job会把重试次数5次用完。具体看注释。

原来的逻辑会导致job永远不会结束执行,因为repeatedCount一直没有变,永远不能时repeatCount变为5,循环执行下去!

lusong1986 avatar Sep 05 '17 06:09 lusong1986