Skip to content

Commit

Permalink
log resource allocation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZhou5042 committed Dec 12, 2024
1 parent e207615 commit 1f3cb2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions taskvine/src/manager/vine_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ int check_worker_have_enough_resources(struct vine_manager *q, struct vine_worke
ok = 0;
}

// it is concerning if the resource allocation fails
if (!ok) {
debug(D_VINE, "Resource allocation for task %d on worker %s fails: %.0f, %.2f, %.2f, %ld, %ld, %ld",
t->task_id, w->hostname, tr->cores, tr->memory, tr->disk, cores_available, memory_available, disk_available);
}

vine_resources_delete(worker_net_resources);
return ok;
}
Expand Down

0 comments on commit 1f3cb2d

Please sign in to comment.