diff --git a/lib/floe/workflow/states/child_workflow_mixin.rb b/lib/floe/workflow/states/child_workflow_mixin.rb index 7d1fd3cb..04bc1c5e 100644 --- a/lib/floe/workflow/states/child_workflow_mixin.rb +++ b/lib/floe/workflow/states/child_workflow_mixin.rb @@ -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)