Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions taskvine/src/manager/vine_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -4668,14 +4668,13 @@ static void push_task_to_ready_tasks(struct vine_manager *q, struct vine_task *t
{
if (t->result == VINE_RESULT_RESOURCE_EXHAUSTION) {
/* when a task is resubmitted given resource exhaustion, we
* increment its priority by 1, so it gets to run as soon
* increment its priority a bit, so it gets to run as soon
* as possible among those with the same priority. This avoids
* the issue in which all 'big' tasks fail because the first
* allocation is too small. */
priority_queue_push(q->ready_tasks, t, t->priority + 1);
} else {
priority_queue_push(q->ready_tasks, t, t->priority);
t->priority *= 1.05;
}
priority_queue_push(q->ready_tasks, t, t->priority);

/* If the task has been used before, clear out accumulated state. */
vine_task_clean(t);
Expand Down
Loading