Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Handle DB transaction failure #301

Open
henn opened this issue Oct 16, 2014 · 0 comments
Open

Handle DB transaction failure #301

henn opened this issue Oct 16, 2014 · 0 comments

Comments

@henn
Copy link
Contributor

henn commented Oct 16, 2014

Currently, we have a bunch of code that assumes that DB commits through SQLAlchemy succeed. They could fail due to concurrent requests that modify any shared objects.

We should catch the failures and do something sensible. One way to do this is to catch the exception before dispatching to the API call and retry the operation some number of times. If the retry count were exceeded, we could return a 503 status to the user.

Discussed with @gsilvis and @zenhack

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants