[CI][Ray] Fix flaky multi-node assignment test after placement-group teardown (#53621)

This commit is contained in:
yzong-rh
2026-08-29 23:48:22 +00:00
committed by GitHub
parent 6cddad414e
commit 680e2177e4
2 changed files with 17 additions and 20 deletions
-18
View File
@@ -517,24 +517,6 @@ def _wait_until_pg_ready(current_placement_group: "PlacementGroup"):
) from None
def _wait_until_pg_removed(current_placement_group: "PlacementGroup"):
ray.util.remove_placement_group(current_placement_group)
s = time.time()
wait_interval = 10
while time.time() - s < PG_WAIT_TIMEOUT:
pg = ray.util.get_current_placement_group()
if pg is None:
break
# Exponential backoff for warning print.
wait_interval *= 2
logger.info(
"Waiting for removing a placement group of specs for %d seconds.",
int(time.time() - s),
)
time.sleep(wait_interval)
def initialize_ray_cluster(
parallel_config: ParallelConfig,
ray_address: str | None = None,