diff --git a/taskvine/src/manager/vine_schedule.c b/taskvine/src/manager/vine_schedule.c index cafa31f03a..ba3e090354 100644 --- a/taskvine/src/manager/vine_schedule.c +++ b/taskvine/src/manager/vine_schedule.c @@ -164,7 +164,7 @@ int check_worker_have_enough_disk_with_inputs(struct vine_manager *q, struct vin /* Check if the worker is fully occupied by other tasks, or the disk is full. * @param w The worker info structure. */ -static int worker_fully_occupied(struct vine_worker_info *w) +static int worker_has_available_resources(struct vine_worker_info *w) { if (w->resources->cores.total + w->resources->gpus.total >= w->resources->cores.inuse + w->resources->gpus.inuse) { return 0; @@ -198,7 +198,7 @@ int check_worker_against_task(struct vine_manager *q, struct vine_worker_info *w } /* if the worker has been fully occupied */ - if (worker_fully_occupied(w)) { + if (!worker_has_available_resources(w)) { return 0; }