Skip to content

Commit

Permalink
Merge pull request #486 from JamesWrigley/test-fixes
Browse files Browse the repository at this point in the history
Special-case StreamingFunction in EagerThunkMetadata() constructor
  • Loading branch information
jpsamaroo authored Mar 20, 2024
2 parents b4f41c8 + 09aedee commit 29d790f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/submission.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function eager_process_options_submission_to_local(id_map, options::NamedTuple)
end
end
function EagerThunkMetadata(spec::EagerTaskSpec)
f = chunktype(spec.f).instance
f = spec.f isa StreamingFunction ? spec.f.f : spec.f
arg_types = ntuple(i->chunktype(spec.args[i][2]), length(spec.args))
return_type = Base.promote_op(f, arg_types...)
return EagerThunkMetadata(return_type)
Expand Down

0 comments on commit 29d790f

Please sign in to comment.