We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e0718e commit 9e25be1Copy full SHA for 9e25be1
1 file changed
src/opengeodeweb_back/app.py
@@ -63,8 +63,9 @@ def return_error() -> Response:
63
methods=["GET"],
64
)
65
def health() -> Response:
66
- health = utils_functions.kill_task(flask.current_app)
67
- return flask.make_response({"health": health}, 200)
+ if utils_functions.kill_task(flask.current_app):
+ return flask.make_response({}, 500)
68
+ return flask.make_response({}, 200)
69
70
@app.route("/", methods=["POST"])
71
@cross_origin()
0 commit comments