From d5af7f122a8b4bbcc5e748d95d6265b9c09cf4ec Mon Sep 17 00:00:00 2001 From: julialawrence Date: Tue, 24 Oct 2023 08:30:07 +0100 Subject: [PATCH] Debugging statements. --- app/cluster_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/cluster_manager.py b/app/cluster_manager.py index 5cb3d37..43acc5c 100644 --- a/app/cluster_manager.py +++ b/app/cluster_manager.py @@ -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):