Skip to content

Commit b22567c

Browse files
committed
fixup! Add metadata to EagerThunk
1 parent 8eb1a6a commit b22567c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
99
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1010
MemPool = "f9f48841-c794-520a-933b-121f7ba6ed94"
11+
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
1112
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1213
Profile = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"
1314
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/submission.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ function eager_process_options_submission_to_local(id_map, options::NamedTuple)
184184
end
185185
end
186186
function EagerThunkMetadata(spec::EagerTaskSpec)
187+
f = chunktype(spec.f).instance
187188
arg_types = ntuple(i->chunktype(spec.args[i][2]), length(spec.args))
188-
return_type = Base._return_type(spec.f, Base.to_tuple_type(arg_types))
189+
return_type = Base._return_type(f, Base.to_tuple_type(arg_types))
189190
return EagerThunkMetadata(return_type)
190191
end
191192
chunktype(t::EagerThunk) = t.metadata.return_type

0 commit comments

Comments
 (0)