Skip to content

Commit

Permalink
check mem and disk as well
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhou5042 committed Dec 12, 2024
1 parent 47e27b0 commit b95f32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskvine/src/manager/vine_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int check_worker_against_task(struct vine_manager *q, struct vine_worker_info *w
}

/* worker is fully occupied */
if (w->resources->cores.total == w->resources->cores.inuse) {
if ((w->resources->cores.total == w->resources->cores.inuse) || w->resources->memory.total == w->resources->memory.inuse || w->resources->disk.total == w->resources->disk.inuse) {
return 0;
}

Expand Down

0 comments on commit b95f32b

Please sign in to comment.