Skip to content

Wrap db access functions with an auto-retry decorator#1

Open
rev138 wants to merge 6 commits intoSvenTwo:masterfrom
rev138:master
Open

Wrap db access functions with an auto-retry decorator#1
rev138 wants to merge 6 commits intoSvenTwo:masterfrom
rev138:master

Conversation

@rev138
Copy link

@rev138 rev138 commented Sep 5, 2019

I've added an 'auto_retry' decorator which will catch pymongo AutoReconnect exceptions and retry the operation 5 times with an exponential back-off. This should allow it to weather occasional blips in mongodb availability.

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.

2 participants