-
Notifications
You must be signed in to change notification settings - Fork 13
feat: Add command to get available resources #165
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #165 +/- ##
==========================================
- Coverage 41.81% 41.74% -0.08%
==========================================
Files 68 69 +1
Lines 6613 6684 +71
==========================================
+ Hits 2765 2790 +25
- Misses 3848 3894 +46
Continue to review full report at Codecov.
|
src/ai/backend/client/cli/manager.py
Outdated
print(' CPU:', ret['scaling_group_remaining']['cpu']) | ||
print(' Memory:', ret['scaling_group_remaining']['mem']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be more resource slot types.
Please use session.Resource.get_resource_slots()
to retrieve the exact list of the currently configured resource slots, and then iterate over it when displaying the remainings.
Note that you may need to have an extra mapping from the resource slot name to a human-readable name with a fallback to the raw slot name.
lablup/backend.ai#249
This PR adds API to get available resources in groups.
Users can get available resources by API GET method.