Skip to content

Commit

Permalink
fix: Update milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 8, 2025
1 parent e0d751a commit 261c13f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/ai/backend/client/cli/session/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/gql_models/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/manager/models/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 261c13f

Please sign in to comment.