Skip to content

Commit

Permalink
Merge pull request #436 from JuliaParallel/jps/submission-var-bug
Browse files Browse the repository at this point in the history
submission: Fix variable shadowing bug
  • Loading branch information
jpsamaroo authored Sep 26, 2023
2 parents 99b902c + 20121d8 commit 37fecef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/submission.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ function eager_submit_internal!(ctx, state, task, tid, payload; uid_to_tid=Dict{
for (idx, (pos, arg)) in enumerate(args)
pos::Union{Symbol,Nothing}
newarg = if arg isa EagerThunk
uid = arg.uid
tid = if haskey(id_map, uid)
id_map[uid]
arg_uid = arg.uid
arg_tid = if haskey(id_map, arg_uid)
id_map[arg_uid]
else
uid_to_tid[uid]
uid_to_tid[arg_uid]
end
state.thunk_dict[tid]
state.thunk_dict[arg_tid]
elseif arg isa Sch.ThunkID
tid = arg.id
state.thunk_dict[tid]
arg_tid = arg.id
state.thunk_dict[arg_tid]
else
arg
end
Expand Down

0 comments on commit 37fecef

Please sign in to comment.