Skip to content

Commit

Permalink
do not measure disk for function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 committed Aug 7, 2024
1 parent 3a96add commit 5cb24e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taskvine/src/worker/vine_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,8 @@ static int task_resources_fit_now(struct vine_task *t)
{
return (cores_allocated + t->resources_requested->cores <= total_resources->cores.total) &&
(memory_allocated + t->resources_requested->memory <= total_resources->memory.total) &&
(disk_allocated + t->resources_requested->disk <= total_resources->disk.total) && (gpus_allocated + t->resources_requested->gpus <= total_resources->gpus.total);
((t->needs_library || disk_allocated + t->resources_requested->disk <= total_resources->disk.total)) && (gpus_allocated + t->resources_requested->gpus <= total_resources->gpus.total);
// XXX Disk is constantly shrinking, and library disk requests are currently static. Once we generate some files things will hang.
}

/*
Expand Down

0 comments on commit 5cb24e9

Please sign in to comment.