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: Wrong default value of total_resource_slots column #3240

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
fix: Wrong default value of total_resource_slots column
fregataa committed Dec 11, 2024
commit ac7862184175841f13be3dd15a9552aba2a23c30
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/domain.py
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@
onupdate=sa.func.current_timestamp(),
),
# TODO: separate resource-related fields with new domain resource policy table when needed.
sa.Column("total_resource_slots", ResourceSlotColumn(), default="{}"),
sa.Column("total_resource_slots", ResourceSlotColumn(), default={}),
sa.Column(
"allowed_vfolder_hosts",
VFolderHostPermissionColumn(),
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/group.py
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@ class ProjectType(enum.StrEnum):
index=True,
),
# TODO: separate resource-related fields with new domain resource policy table when needed.
sa.Column("total_resource_slots", ResourceSlotColumn(), default="{}"),
sa.Column("total_resource_slots", ResourceSlotColumn(), default={}),
sa.Column(
"allowed_vfolder_hosts",
VFolderHostPermissionColumn(),