Skip to content

Commit

Permalink
Fix a tight loop in ChildWorkflowMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Nov 21, 2024
1 parent 589d253 commit 63044e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/floe/workflow/states/child_workflow_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ module States
module ChildWorkflowMixin
def run_nonblock!(context)
start(context) unless context.state_started?

step_nonblock!(context) while running?(context)
step_nonblock!(context)
return Errno::EAGAIN unless ready?(context)

finish(context) if ended?(context)
Expand Down

0 comments on commit 63044e0

Please sign in to comment.