This repository was archived by the owner on Sep 22, 2023. It is now read-only.
feat: Add command to get available resources#165
Open
romanceformoon wants to merge 10 commits intomainfrom
Open
feat: Add command to get available resources#165romanceformoon wants to merge 10 commits intomainfrom
romanceformoon wants to merge 10 commits intomainfrom
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.
|
achimnol
suggested changes
Jul 10, 2021
Comment on lines
+227
to
+228
| print(' CPU:', ret['scaling_group_remaining']['cpu']) | ||
| print(' Memory:', ret['scaling_group_remaining']['mem']) |
Member
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lablup/backend.ai#249
This PR adds API to get available resources in groups.
Users can get available resources by API GET method.