mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Use /hub/api endpoint to check for hub ready
On config reload
This commit is contained in:
@@ -240,7 +240,7 @@ def remove_config_value(config_path, key_path, value):
|
|||||||
|
|
||||||
def check_hub_ready():
|
def check_hub_ready():
|
||||||
try:
|
try:
|
||||||
r = requests.get('http://127.0.0.1:80', verify=False)
|
r = requests.get('http://127.0.0.1:80/hub/api', verify=False)
|
||||||
return r.status_code == 200
|
return r.status_code == 200
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user