Ray projects schema and validation (#5329)

This commit is contained in:
Philipp Moritz
2019-08-06 14:36:04 -07:00
committed by GitHub
parent 3ad2fe76e0
commit e8d9cfc1f1
19 changed files with 318 additions and 1 deletions
+12
View File
@@ -706,6 +706,17 @@ def get_worker_ips(cluster_config_file, cluster_name):
click.echo("\n".join(worker_ips))
@cli.command()
@click.argument("command", required=True, type=str)
@click.option(
"--dry",
is_flag=True,
default=False,
help="Print actions instead of running them.")
def session(command, dry):
ray.projects.load_project(os.getcwd())
@cli.command()
def stack():
COMMAND = """
@@ -791,6 +802,7 @@ cli.add_command(teardown, name="down")
cli.add_command(kill_random_node)
cli.add_command(get_head_ip, name="get_head_ip")
cli.add_command(get_worker_ips)
cli.add_command(session)
cli.add_command(stack)
cli.add_command(timeline)