Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant