We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 803829e commit 8387ee8Copy full SHA for 8387ee8
tools/AutoTuner/test/resume_check.py
@@ -68,8 +68,16 @@ def test_tune_resume(self):
68
with managed_process(self.commands[0], shell=True) as proc:
69
time.sleep(120)
70
71
- # Close all ray instances
72
- subprocess.run("ray stop", shell=True)
+ # Keep trying to stop the ray cluster until it is stopped
+ while 1:
73
+ proc = subprocess.run("ray status", shell=True)
74
+ no_nodes = proc.returncode != 0
75
+ proc = subprocess.run("ray stop", shell=True)
76
+ successful = proc.returncode == 0
77
+
78
+ if no_nodes and successful:
79
+ break
80
+ time.sleep(10)
81
82
# Run the second config to completion
83
print("Running the second config")
0 commit comments