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

Allow flapping plugin to retry indefinitely #535

Merged
merged 5 commits into from Sep 12, 2013
Merged

Allow flapping plugin to retry indefinitely #535

merged 5 commits into from Sep 12, 2013

Conversation

ghost
Copy link

@ghost ghost commented Sep 12, 2013

I've added some test for the existing code (not 100% coverage but better than nothing) and I've changed the max_retry option so that if we set it to -1, it retries indefinitely.

To test for restart, I wasn't able to mock the start call within the callback (looks like an interaction between mock and threading that I don't understand), so I've mocked the timer.

Alex Marandon added 3 commits September 12, 2013 13:00
Change the behavior of the flapping plugin's max_retry option to follow
the same convention as the global max_retry option. If the option is set
to -1, we keep retrying forever. Issue #519
@coveralls
Copy link

Coverage Status

Coverage increased (+1.14%) when pulling 2889432 on amarandon:flapping into 07da07a on mozilla-services:master.

@tarekziade
Copy link
Member

Looks good ! Can you add yourself to NOTICE i - I'll merge then

@ghost
Copy link
Author

ghost commented Sep 12, 2013

Here you go. Also sneaking in a git ignore for my editor if that's ok ;)

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 9e1771b on amarandon:flapping into 07da07a on mozilla-services:master.

@almet
Copy link
Contributor

almet commented Sep 12, 2013

Thanks :)

almet added a commit that referenced this pull request Sep 12, 2013
Allow flapping plugin to retry indefinitely
@almet almet merged commit 737d8a7 into circus-tent:master Sep 12, 2013
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.

None yet

3 participants