From 1f3cb2dd8787b5ebfaf896e7508c2fa7de315be6 Mon Sep 17 00:00:00 2001 From: JinZhou5042 Date: Thu, 12 Dec 2024 01:00:59 -0500 Subject: [PATCH] log resource allocation failures --- taskvine/src/manager/vine_schedule.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/taskvine/src/manager/vine_schedule.c b/taskvine/src/manager/vine_schedule.c index 7731da5a8a..b432b054ea 100644 --- a/taskvine/src/manager/vine_schedule.c +++ b/taskvine/src/manager/vine_schedule.c @@ -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; }