Skip to content

Commit

Permalink
fix: Wrong value of concurrency used (#2829) (#2830)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanghun Lee <sanghun@lablup.com>
  • Loading branch information
lablup-octodog and fregataa authored Sep 11, 2024
1 parent 088fa31 commit ee612c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/2829.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Wrong count of concurrent compute sessions.
4 changes: 2 additions & 2 deletions src/ai/backend/manager/models/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ def system_concurrency_used_key(self) -> str:

def to_cnt_map(self) -> Mapping[str, int]:
return {
self.compute_concurrency_used_key: len(self.compute_concurrency_used_key),
self.system_concurrency_used_key: len(self.system_concurrency_used_key),
self.compute_concurrency_used_key: len(self.compute_session_ids),
self.system_concurrency_used_key: len(self.system_session_ids),
}


Expand Down

0 comments on commit ee612c0

Please sign in to comment.