mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
[Core]Fix raylet scheduling bug (#13452)
* [Core]Fix raylet scheduling bug * fix lint error * fix lint error Co-authored-by: 灵洵 <fengbin.ffb@antgroup.com>
This commit is contained in:
@@ -174,6 +174,10 @@ int64_t ClusterResourceScheduler::GetBestSchedulableNode(const TaskRequest &task
|
||||
bool actor_creation,
|
||||
int64_t *total_violations,
|
||||
bool *is_infeasible) {
|
||||
// NOTE: We need to set `is_infeasible` to false in advance to avoid `is_infeasible` not
|
||||
// being set.
|
||||
*is_infeasible = false;
|
||||
|
||||
// Minimum number of soft violations across all nodes that can schedule the request.
|
||||
// We will pick the node with the smallest number of soft violations.
|
||||
int64_t min_violations = INT_MAX;
|
||||
|
||||
Reference in New Issue
Block a user