Skip to content

Commit

Permalink
Special-case StreamingFunction in EagerThunkMetadata() constructor
Browse files Browse the repository at this point in the history
This always us to handle all the other kinds of task specs.
  • Loading branch information
JamesWrigley authored and jpsamaroo committed Apr 5, 2024
1 parent 3b90d08 commit fa01410
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 @@ -218,7 +218,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 fa01410

Please sign in to comment.