Skip to content

Commit

Permalink
Set State["PreviousStateGuid"] in StateHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jun 12, 2024
1 parent 768c494 commit eeb0592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/floe/workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def current_state
private

def step!
next_state = {"Name" => context.next_state}
next_state = {"Name" => context.next_state, "PreviousStateGuid" => context.state["Guid"]}

# if rerunning due to an error (and we are using Retry)
if context.state_name == context.next_state && context.failed? && context.state.key?("Retrier")
Expand Down

0 comments on commit eeb0592

Please sign in to comment.