pypyr.steps.stopstepgroup permalink

Stop current step-group. Doesn’t run any success or failure handlers, it just stops the current step-group.

This is handy if you are using pypyr.steps.call or pypyr.steps.jump to run different step-groups, allowing you to stop just a child step-group but letting the calling parent step-group continue.

You can always use pypyr.steps.stopstepgroup as a simple step, because it doesn’t need any input context properties.

If you use a Stop step-group instruction inside a failure handler it will stop processing at that point AND not quit reporting failure. Do this when you want to handle an error condition and not raise an error to the caller.

examples permalink

steps:
  - name: pypyr.steps.call
    in:
      call:
        groups: arbgroup
  - name: pypyr.steps.echo
    in:
     echoMe: You'll see me because only arbgroup was stopped.

arbgroup:
    - name: pypyr.steps.echo
      in:
        echoMe: this is arb group
    - pypyr.steps.stopstepgroup
    - name: pypyr.steps.echo
      in:
        echoMe: if you see me something is WRONG.

See a worked example to stop a step-group here.

see also

last updated on .