XD-DENG commented on a change in pull request #4309: [AIRFLOW-3504]
Extend/refine the functionality of "/health" endpoint
URL: https://github.com/apache/airflow/pull/4309#discussion_r246398796
##########
File path: airflow/www_rbac/blueprints.py
##########
@@ -17,19 +17,11 @@
# specific language governing permissions and limitations
# under the License.
#
-from flask import Markup, Blueprint, redirect
-import markdown
+from flask import Blueprint, redirect
routes = Blueprint('routes', __name__)
@routes.route('/')
def index():
return redirect('/home')
-
-
[email protected]('/health')
-def health():
Review comment:
I have tried: for the old UI, if we put this function into `views.py`, the
endpoint will be something like `https://<host>:8080/admin/airflow/health`,
while I believe it's better to make it `https://<host>:8080/health` to be
consistent with the new UI.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services