From 261c13f92efdd88c1d1e19ba3ca348d282e688d8 Mon Sep 17 00:00:00 2001 From: jopemachine Date: Wed, 8 Jan 2025 05:29:13 +0000 Subject: [PATCH] fix: Update milestone --- src/ai/backend/client/cli/session/lifecycle.py | 8 ++++---- src/ai/backend/manager/models/gql_models/session.py | 2 +- src/ai/backend/manager/models/session.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ai/backend/client/cli/session/lifecycle.py b/src/ai/backend/client/cli/session/lifecycle.py index f9bacaf886..6abb5e4c6a 100644 --- a/src/ai/backend/client/cli/session/lifecycle.py +++ b/src/ai/backend/client/cli/session/lifecycle.py @@ -875,7 +875,7 @@ def logs(session_id: str, kernel: str | None) -> None: Shows the full console log of a compute session. \b - SESSID: Session ID or its alias given when creating the session. + SESSION_ID_OR_NAME: Session ID or its alias given when creating the session. """ _kernel_id = uuid.UUID(kernel) if kernel is not None else None with Session() as session: @@ -893,8 +893,8 @@ def logs(session_id: str, kernel: str | None) -> None: @session.command() @pass_ctx_obj -@click.argument("session_id", metavar="SESSID") -def status_history(ctx: CLIContext, session_id: SessionId) -> None: +@click.argument("session_id_or_name", metavar="SESSION_ID_OR_NAME") +def status_history(ctx: CLIContext, session_id_or_name: str) -> None: """ Shows the status transition history of the compute session. @@ -906,7 +906,7 @@ async def cmd_main() -> None: async with AsyncSession() as session: print_wait("Retrieving status history...") - kernel = session.ComputeSession(str(session_id)) + kernel = session.ComputeSession(session_id_or_name) try: resp = await kernel.get_status_history() status_history = resp["result"] diff --git a/src/ai/backend/manager/models/gql_models/session.py b/src/ai/backend/manager/models/gql_models/session.py index ddc12ea398..788ee1ced2 100644 --- a/src/ai/backend/manager/models/gql_models/session.py +++ b/src/ai/backend/manager/models/gql_models/session.py @@ -174,7 +174,7 @@ class Meta: # status_changed = GQLDateTime() # FIXME: generated attribute status_info = graphene.String() status_data = graphene.JSONString() - status_history = graphene.JSONString(description="Added in 24.12.0.") + status_history = graphene.JSONString(description="Added in 25.1.0.") created_at = GQLDateTime() terminated_at = GQLDateTime() starts_at = GQLDateTime() diff --git a/src/ai/backend/manager/models/session.py b/src/ai/backend/manager/models/session.py index 511f1cf92d..e0784d2334 100644 --- a/src/ai/backend/manager/models/session.py +++ b/src/ai/backend/manager/models/session.py @@ -1591,9 +1591,9 @@ class Meta: status_info = graphene.String() status_data = graphene.JSONString() status_history = graphene.JSONString( - deprecation_reason="Deprecated since 24.12.0; use `status_history_log`" + deprecation_reason="Deprecated since 25.1.0; use `status_history_log`" ) - status_history_log = graphene.JSONString(description="Added in 24.12.0") + status_history_log = graphene.JSONString(description="Added in 25.1.0.") created_at = GQLDateTime() terminated_at = GQLDateTime()