Skip to content

Commit

Permalink
fix: Change data types that were mistakenly converted to tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jul 18, 2024
1 parent b707634 commit f221d17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ai/backend/manager/models/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,16 +544,16 @@ class KernelRow(Base):
# // used to prevent duplication of SessionTerminatedEvent
# }
# }
status_history = (sa.Column("status_history", pgsql.JSONB(), nullable=False, default=[]),)
status_history = sa.Column("status_history", pgsql.JSONB(), nullable=False, default=[])
# status_history records all status changes
# e.g)
# [
# {"status: "PENDING", "timestamp": "2022-10-22T10:22:30"},
# {"status: "SCHEDULED", "timestamp": "2022-10-22T11:40:30"},
# {"status: "PREPARING", "timestamp": "2022-10-25T10:22:30"}
# ]
callback_url = (sa.Column("callback_url", URLColumn, nullable=True, default=sa.null()),)
startup_command = (sa.Column("startup_command", sa.Text, nullable=True),)
callback_url = sa.Column("callback_url", URLColumn, nullable=True, default=sa.null())
startup_command = sa.Column("startup_command", sa.Text, nullable=True)
result = sa.Column(
"result",
EnumType(SessionResult),
Expand Down

0 comments on commit f221d17

Please sign in to comment.