Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: cancel a parallel group of sequence if one fails #12

Open
tfb-bull opened this issue Jul 13, 2012 · 1 comment
Open

Comments

@tfb-bull
Copy link

Hi,

I came across an interesting thought while using the sequencer API.
It could be interesting to be able to cancel the execution of a group of parallel sequences of actions if one of these sequence returns an error.

For instance, I have to run several group of commands but if one these group fails then the execution of all non-finished sequence should be stopped.
Let's take the following XML chunk as an example:

<par>
    <seq desc="cmd group 1">
        <action id="action1">mycmd -p a -l x
        <action id="action"2>othercm -p a -l x
    </seq>
    <seq desc="cmd group 2">
        <action id="action1">mycmd -p b -l y
        <action id="action"2>othercm -p b -l y
    </seq>
</par>

Both sequence are executed in parallel.
If "mycmd -p a -l x" of "cmd group 1" fails (for whatever reason), then the execution of the sequence "cmd group 2" should be stopped.

Regards,

@ghost ghost self-assigned this Jul 20, 2012
@ghost
Copy link

ghost commented Jul 20, 2012

This feature sounds great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant