Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Try to reconnect to the db. Return anyway a 500 to notify docker
· 987f34c7
Marco De Donno
authored
Jul 08, 2019
987f34c7
Hide whitespace changes
Inline
Side-by-side
module.py
View file @
987f34c7
...
@@ -152,6 +152,7 @@ def redis_cache( ttl = 3600 ):
...
@@ -152,6 +152,7 @@ def redis_cache( ttl = 3600 ):
@app.route
(
baseurl
+
'
/ping
'
)
@app.route
(
baseurl
+
'
/ping
'
)
def
ping
():
def
ping
():
if
not
config
.
db
.
check
():
if
not
config
.
db
.
check
():
config
.
db
.
connect
()
return
abort
(
500
)
return
abort
(
500
)
else
:
else
:
return
"
pong
"
return
"
pong
"
...
...