Skip to content

Commit 29d790f

Browse files
authored
Merge pull request #486 from JamesWrigley/test-fixes
Special-case StreamingFunction in EagerThunkMetadata() constructor
2 parents b4f41c8 + 09aedee commit 29d790f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/submission.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ 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
187+
f = spec.f isa StreamingFunction ? spec.f.f : spec.f
188188
arg_types = ntuple(i->chunktype(spec.args[i][2]), length(spec.args))
189189
return_type = Base.promote_op(f, arg_types...)
190190
return EagerThunkMetadata(return_type)

0 commit comments

Comments
 (0)