Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retryhandler处理repeat job的bug-卢松 #374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

retryhandler处理repeat job的bug-卢松 #374

wants to merge 1 commit into from

Conversation

lusong1986
Copy link
Contributor

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

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

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

原来的逻辑会导致job永远不会结束执行,因为repeatedCount一直没有变,永远不能时repeatCount变为5,循环执行下去!
@lusong1986 lusong1986 changed the title retryhandler处理repeat job的bug, retryhandler处理repeat job的bug-卢松 Sep 5, 2017
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