-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] respect bundle index when task is scheduled with pg with no resources. #43448
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,6 +203,11 @@ std::unordered_map<std::string, double> AddPlacementGroupConstraint( | |
auto bundle_key = | ||
FormatPlacementGroupResource(kBundle_ResourceLabel, placement_group_id, -1); | ||
new_resources[bundle_key] = 0.001; | ||
if (bundle_index >= 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I'm wondering if we should only add bundle resource when normal resources are empty. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should add index resource in case users want to use bundle_index |
||
auto bundle_key_with_index = FormatPlacementGroupResource( | ||
kBundle_ResourceLabel, placement_group_id, bundle_index); | ||
new_resources[bundle_key_with_index] = 0.001; | ||
} | ||
return new_resources; | ||
} | ||
|
||
|
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.
This comment should be removed