Skip to content

Commit 2fc3180

Browse files
commit task after group list removal
1 parent 78715e9 commit 2fc3180

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

taskvine/src/manager/vine_manager.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2953,13 +2953,13 @@ static vine_result_code_t commit_task_group_to_worker(struct vine_manager *q, st
29532953
int counter = 0;
29542954
do {
29552955

2956-
result = commit_task_to_worker(q, w, t);
29572956
if (counter && (result == VINE_SUCCESS)) {
29582957
int t_idx = priority_queue_find_idx(q->ready_tasks, t);
29592958
priority_queue_remove(q->ready_tasks, t_idx);
29602959
// decrement refcount
29612960
vine_task_delete(t);
29622961
}
2962+
result = commit_task_to_worker(q, w, t);
29632963
counter++;
29642964
} while ((l && (t = list_pop_head(l))));
29652965

taskvine/src/worker/vine_sandbox.c

-5
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,11 @@ vine_cache_status_t vine_sandbox_ensure(struct vine_process *p, struct vine_cach
5656
struct vine_process *lp;
5757
uint64_t task_id;
5858
int found_file = 0;
59-
debug(D_VINE, "iterate proc list");
60-
debug(D_VINE, "procs table %p", procs_table);
6159
ITABLE_ITERATE(procs_table, task_id, lp)
6260
{
63-
debug(D_VINE, "index proc");
6461
struct vine_mount *lm;
6562
LIST_ITERATE(lp->task->output_mounts, lm)
6663
{
67-
debug(D_VINE, "comparing %s and %s", lm->file->cached_name, m->file->cached_name);
6864
if (strcmp(lm->file->cached_name, m->file->cached_name) == 0) {
6965
found_file = 1;
7066
break;
@@ -75,7 +71,6 @@ vine_cache_status_t vine_sandbox_ensure(struct vine_process *p, struct vine_cach
7571
}
7672
}
7773
if (found_file) {
78-
debug(D_VINE, "Found file in process queue");
7974
processing++;
8075
break;
8176
}

0 commit comments

Comments
 (0)