use http healthcheck

prevents traffic being routed to apps that haven't warmed up yet
This commit is contained in:
Leo Hemsted
2019-05-17 14:50:36 +01:00
parent 3e0ca91912
commit 89c7a87af2
2 changed files with 4 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ from app.status import status
@status.route('/_status', methods=['GET'])
def show_status():
if request.args.get('elb', None):
if request.args.get('elb', None) or request.args.get('simple', None):
return jsonify(status="ok"), 200
else:
try: