mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
use http healthcheck
prevents traffic being routed to apps that haven't warmed up yet
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user