Skip to content

Commit

Permalink
fix skip task when scheduling.
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessOIer committed Sep 18, 2024
1 parent 43288b2 commit 86df80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CraneCtld/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ bool MinLoadFirst::CalculateRunningNodesAndStartTime_(
task->Resources().EachNodeResMap().begin()->second.allocatable_res;

// If any of the follow `if` is true, skip this node.
if (!(task->requested_node_res_view <= craned_meta->res_avail)) {
if (!(task->requested_node_res_view <= craned_meta->res_total)) {
if constexpr (kAlgoTraceOutput) {
CRANE_TRACE(
"Task #{} needs more resource than that of craned {}. "
Expand Down

0 comments on commit 86df80e

Please sign in to comment.