Added retry loop w/ backoff to model cleanup routine. #71

Merged
merged 2 commits into from Feb 3, 2017

Conversation

Projects
None yet
2 participants
Collaborator

petevg commented Jan 20, 2017

Also broke the cleanup out into a separate function, for unit testing.

@johnsca @ktsakalozos @kwmonroe Unit testing the RulesEngine class is a bit of a headache. To test this, I just inserted an artificial raise Exception("test!") in the code, and verified that we tried ten times (the original + 9 retries), and slept the appropriate amount of time between each. I did code it so that it would be easy to add a unit test, once we have a decent harness for testing the RulesEngine.

Collaborator

petevg commented Jan 31, 2017

Fixing conflicts ...

petevg added some commits Jan 20, 2017

@johnsca johnsca merged commit 06253c8 into master Feb 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment