Skip to content

Commit

Permalink
Pass execution_id down to ItemProcessor states
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Oct 4, 2024
1 parent ed854ce commit 8bf874c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/floe/workflow/states/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def start(context)

context.state["Iteration"] = 0
context.state["MaxIterations"] = input.count
context.state["ItemProcessorContext"] = input.map { |item| Context.new(nil, :input => item.to_json).to_h }
context.state["ItemProcessorContext"] = input.map { |item| Context.new({"Execution" => {"Id" => context.execution["Id"]}}, :input => item.to_json).to_h }
end

def finish(context)
Expand Down

0 comments on commit 8bf874c

Please sign in to comment.