Skip to content

Commit

Permalink
fix: Missing status_history field
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Dec 10, 2024
1 parent 46318b1 commit 0fe5394
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ai/backend/manager/api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ type ComputeContainer implements Item {
registry: String
status: String
status_changed: DateTime

"""Added in 24.12.0."""
status_history: JSONString
status_info: String
status_data: JSONString
created_at: DateTime
Expand Down Expand Up @@ -1196,6 +1199,8 @@ type ComputeSessionNode implements Node {
status: String
status_info: String
status_data: JSONString

"""Added in 24.12.0."""
status_history: JSONString
created_at: DateTime
terminated_at: DateTime
Expand Down
2 changes: 2 additions & 0 deletions src/ai/backend/manager/models/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ class Meta:
# status
status = graphene.String()
status_changed = GQLDateTime()
status_history = graphene.JSONString(description="Added in 24.12.0.")
status_info = graphene.String()
status_data = graphene.JSONString()
created_at = GQLDateTime()
Expand Down Expand Up @@ -931,6 +932,7 @@ def parse_row(cls, ctx: GraphQueryContext, row: KernelRow) -> Mapping[str, Any]:
# status
"status": row.status.name,
"status_changed": row.status_changed,
"status_history": row.status_history,
"status_info": row.status_info,
"status_data": row.status_data,
"created_at": row.created_at,
Expand Down

0 comments on commit 0fe5394

Please sign in to comment.