mirror of
https://github.com/wassname/ray.git
synced 2026-09-12 12:51:15 +08:00
[autoscaler] Create Docker Command Runner (#8806)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
co-authored by
Richard Liaw
parent
488c06e92d
commit
54189bca5a
@@ -147,7 +147,8 @@ def kill_node(config_file, yes, hard, override_cluster_name):
|
||||
initialization_commands=[],
|
||||
setup_commands=[],
|
||||
ray_start_commands=[],
|
||||
runtime_hash="")
|
||||
runtime_hash="",
|
||||
docker_config=config["docker"])
|
||||
|
||||
_exec(updater, "ray stop", False, False)
|
||||
|
||||
@@ -286,7 +287,7 @@ def get_or_create_head_node(config, config_file, no_restart, restart_only, yes,
|
||||
setup_commands=init_commands,
|
||||
ray_start_commands=ray_start_commands,
|
||||
runtime_hash=runtime_hash,
|
||||
)
|
||||
docker_config=config["docker"])
|
||||
updater.start()
|
||||
updater.join()
|
||||
|
||||
@@ -407,7 +408,7 @@ def exec_cluster(config_file,
|
||||
setup_commands=[],
|
||||
ray_start_commands=[],
|
||||
runtime_hash="",
|
||||
)
|
||||
docker_config=config["docker"])
|
||||
|
||||
def wrap_docker(command):
|
||||
container_name = config["docker"]["container_name"]
|
||||
@@ -529,7 +530,7 @@ def rsync(config_file,
|
||||
setup_commands=[],
|
||||
ray_start_commands=[],
|
||||
runtime_hash="",
|
||||
)
|
||||
docker_config=config["docker"])
|
||||
if down:
|
||||
rsync = updater.rsync_down
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user