From f5432d6881a13361112d7effe5e999ec80b7cdcf Mon Sep 17 00:00:00 2001 From: Jack Luar Date: Sat, 18 Jan 2025 17:49:55 +0000 Subject: [PATCH] shorten timeout Signed-off-by: Jack Luar --- tools/AutoTuner/test/resume_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/AutoTuner/test/resume_check.py b/tools/AutoTuner/test/resume_check.py index 329368f9cf..6434b39622 100644 --- a/tools/AutoTuner/test/resume_check.py +++ b/tools/AutoTuner/test/resume_check.py @@ -71,14 +71,14 @@ def test_tune_resume(self): # Keep trying to stop the ray cluster until it is stopped while 1: - proc = subprocess.run("ray status", shell=True) + proc = subprocess.run(["ray", "status"], shell=True) no_nodes = proc.returncode != 0 - proc = subprocess.run("ray stop", shell=True) + proc = subprocess.run(["ray", "stop"], shell=True) successful = proc.returncode == 0 if no_nodes and successful: break - time.sleep(10) + time.sleep(5) # Run the second config to completion print("Running the second config")