| View previous topic :: View next topic |
| Author |
Message |
ro
Joined: 19 Nov 2007 Posts: 1
|
Posted: Mon Nov 19, 2007 7:28 am Post subject: How Can Simultaneous Tasks Stop A Chain |
|
|
I have a question regarding simultaneous tasks run within a chain. After the first task in my chain I have a filler step that is a 5 second wait. When the exit code of the wait is 0 it runs several tasks at the same time. I can not figure out how to correctly configure this to have the chain stop (go to step 100) if any of the simultaneous tasks has an exit code != 0.
I can get it to end when exit code !=0 if I add all tasks as enabled steps in the chain but then the tasks run both in parallel and then again in a linear fashion after the parallel steps complete. When I do not include them in the chain the chain will continue if any of the parallel tasks fail (after the first one).
Is there a way to have any of the parallel steps to end the chain on failure from within the interface or will something like this require additional scripting?
Thank you |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Nov 19, 2007 8:53 am Post subject: |
|
|
How do you run all the tasks at the same time? very small wait time or no wait time?
You can add a filler wait step to wait for all the simultaneous tasks. Make sure this wait time is larger than the slowest task run time.
Then add 1 step each to monitor the exit code of each task. (variable monitor task) . If any of the exit codes > 0, exit the chain. |
|
| Back to top |
|
 |
|