mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
Signed-off-by: Future-Outlier <[email protected]> Co-authored-by: machichima <[email protected]> Co-authored-by: fscnick <[email protected]> Co-authored-by: Rueian <[email protected]> Co-authored-by: kaihsun <[email protected]>
11 lines
254 B
Python
11 lines
254 B
Python
import ray
|
|
import argparse
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--name', type=str, default='detached_pg')
|
|
args = parser.parse_args()
|
|
|
|
ray.init(namespace="pg_namespace")
|
|
pg = ray.util.get_placement_group(args.name)
|
|
ray.get(pg.ready())
|