Skip to content

Commit

Permalink
fix: ensure no loop pointer exportation
Browse files Browse the repository at this point in the history
Signed-off-by: Isitha Subasinghe <isubasinghe@student.unimelb.edu.au>
  • Loading branch information
isubasinghe committed Apr 29, 2024
1 parent b943ac1 commit b75b0fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workflow/controller/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ func (woc *wfOperationCtx) executeDAG(ctx context.Context, nodeName string, tmpl
}

for _, task := range tmpl.DAG.Tasks {
task := task
taskId := dagCtx.taskNodeID(task.Name)
dagCtx.nodeToTask[taskId] = &task
}
Expand Down

0 comments on commit b75b0fe

Please sign in to comment.