superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [revert] Reverting PR #4062 (#4359)
Date Wed, 07 Feb 2018 23:56:11 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f1150f  [revert] Reverting PR #4062 (#4359)
6f1150f is described below

commit 6f1150fef47c37fdf511af4e1a3ba7b37730089d
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Wed Feb 7 15:56:07 2018 -0800

    [revert] Reverting PR #4062 (#4359)
---
 superset/views/core.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 7fb96a9..65f431e 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -28,7 +28,7 @@ from six import text_type
 import sqlalchemy as sqla
 from sqlalchemy import create_engine
 from sqlalchemy.engine.url import make_url
-from sqlalchemy.exc import IntegrityError, OperationalError
+from sqlalchemy.exc import IntegrityError
 from unidecode import unidecode
 from werkzeug.routing import BaseConverter
 from werkzeug.utils import secure_filename
@@ -655,11 +655,6 @@ appbuilder.add_view(
 
 @app.route('/health')
 def health():
-    try:
-        db.session.execute('SELECT 1')
-    except OperationalError:
-        return Response('BAD', status=500)
-
     return 'OK'
 
 

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message