Skip to content

Commit 4c03f1b

Browse files
format
1 parent a2ef740 commit 4c03f1b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

taskvine/src/manager/vine_manager.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,12 +3374,14 @@ static struct vine_worker_info *consider_task(struct vine_manager *q, struct vin
33743374
q->stats->time_scheduling += timestamp_get() - q->stats_measure->time_scheduling;
33753375

33763376
// do not continue if this worker is running a group task
3377-
struct vine_task *it;
3378-
uint64_t taskid;
3379-
ITABLE_ITERATE(w->current_tasks, taskid, it){
3380-
if(it->group_id)
3377+
if (q->task_groups_enabled) {
3378+
struct vine_task *it;
3379+
uint64_t taskid;
3380+
ITABLE_ITERATE(w->current_tasks, taskid, it)
33813381
{
3382-
return NULL;
3382+
if (it->group_id) {
3383+
return NULL;
3384+
}
33833385
}
33843386
}
33853387

0 commit comments

Comments
 (0)