Skip to content

Commit

Permalink
double reap quick fix (#4002)
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar authored Dec 9, 2024
1 parent f503d3d commit ff9fff5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions taskvine/src/manager/vine_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -3039,6 +3039,11 @@ and change the task state.

static void reap_task_from_worker(struct vine_manager *q, struct vine_worker_info *w, struct vine_task *t, vine_task_state_t new_state)
{
/* hotfix: do not reap the task if it has been reaped before */
if (!t->worker) {
return;
}

/* Make sure the task and worker agree before changing anything. */
assert(t->worker == w);

Expand Down

0 comments on commit ff9fff5

Please sign in to comment.