Skip to content

Commit

Permalink
Use new health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Dec 13, 2023
1 parent b7bb1c0 commit ee0c0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-app-utils/api_startup_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def wait_for_backend(url):
ready = False
while not ready:
try:
ready = requests.get(f"{url}/docs").status_code == 200
ready = requests.get(f"{url}/health").status_code == 200
print("Waiting for backend API to start")
time.sleep(1)
except requests.exceptions.ConnectionError as e:
Expand Down

0 comments on commit ee0c0eb

Please sign in to comment.