Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(endpoints): wait flag should make it wait #270

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/together/cli/api/endpoints.py
Original file line number Diff line number Diff line change
@@ -133,8 +133,7 @@ def endpoints(ctx: click.Context) -> None:
help="Number of minutes of inactivity after which the endpoint will be automatically stopped. Set to 0 to disable.",
)
@click.option(
"--wait",
is_flag=True,
"--wait/--no-wait",
default=True,
help="Wait for the endpoint to be ready after creation",
)
@@ -276,7 +275,9 @@ def fetch_and_print_hardware_options(
@endpoints.command()
@click.argument("endpoint-id", required=True)
@click.option(
"--wait", is_flag=True, default=True, help="Wait for the endpoint to stop"
"--wait/--no-wait",
default=True,
help="Wait for the endpoint to stop",
)
@click.pass_obj
@handle_api_errors
@@ -299,7 +300,9 @@ def stop(client: Together, endpoint_id: str, wait: bool) -> None:
@endpoints.command()
@click.argument("endpoint-id", required=True)
@click.option(
"--wait", is_flag=True, default=True, help="Wait for the endpoint to start"
"--wait/--no-wait",
default=True,
help="Wait for the endpoint to start",
)
@click.pass_obj
@handle_api_errors