Skip to content

Commit

Permalink
fix(BA-694): Number of concurrent sftp session queried incorrectly (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa authored Feb 11, 2025
1 parent c174665 commit a12e32f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/3654.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct the number of concurrent SFTP sessions queried from DB
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ async def recalc_concurrency_used(
.where(
(KernelRow.access_key == access_key)
& (KernelRow.status.in_(USER_RESOURCE_OCCUPYING_KERNEL_STATUSES))
& (KernelRow.session_type.not_in(PRIVATE_SESSION_TYPES))
& (KernelRow.session_type.in_(PRIVATE_SESSION_TYPES))
),
)
sftp_concurrency_used = result.scalar()
Expand Down

0 comments on commit a12e32f

Please sign in to comment.