Skip to content

Commit

Permalink
fix: unintended reorder;;
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Nov 11, 2024
1 parent 8bc63c7 commit 36bcff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai/backend/manager/models/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ async def _query():
sa.select(KernelRow)
.where(KernelRow.id == kern_id)
.options(
selectinload(KernelRow.agent_row).options(noload("*")),
noload("*"),
selectinload(KernelRow.agent_row).options(noload("*")),
)
)
result = (await db_sess.execute(query)).scalars().all()
Expand Down Expand Up @@ -745,8 +745,8 @@ async def _update() -> bool:
.where(KernelRow.id == kernel_id)
.with_for_update()
.options(
load_only(KernelRow.status, KernelRow.session_id),
noload("*"),
load_only(KernelRow.status, KernelRow.session_id),
)
)
kernel_row = (await db_session.scalars(kernel_query)).first()
Expand Down

0 comments on commit 36bcff2

Please sign in to comment.