[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:
fangfengbin
2021-01-14 14:50:32 +01:00
committed by GitHub
co-authored by 灵洵
parent 56878221ed
commit 4a6c53da46
2 changed files with 27 additions and 1 deletions
@@ -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;