Skip to content

Commit

Permalink
Debugging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Oct 24, 2023
1 parent 1170e51 commit d5af7f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/cluster_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ def wait_for_service_ready(service_url, timeout=300):
try:
response = requests.get(service_url, timeout=5)
if response.status_code == 200:
print("VSCODE Service is ready",flush=True)
# Service is ready
return True
except requests.RequestException as e:
print(f"Request failed: {e}")
# Wait for a while before retrying
time.sleep(5)
print("VSCODE Service is NOT ready",flush=True)
return False # Timeout reached

def launch_vscode_for_user(user_id):
Expand Down

0 comments on commit d5af7f1

Please sign in to comment.