Skip to content

Commit 1673556

Browse files
authoredFeb 19, 2018
Database resilience (#143)
Make secure message start up resilient to slow db start up Retry database connection on DatabaseError every 2s for up to 30s. This allows the app to be more robust when starting up. For instance when running up apps via docker-compose the app should be able to recover if the database is not up first.
1 parent 08470f4 commit 1673556

File tree

3 files changed

+140
-141
lines changed

3 files changed

+140
-141
lines changed
 

‎Pipfile

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cryptography = "==2.1.2"
2525
cfenv = "==0.5.3"
2626
gunicorn = "==19.7.1"
2727
requests = "*"
28+
retrying = "*"
2829

2930

3031
[dev-packages]

0 commit comments

Comments
 (0)