hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How Can Simultaneous Tasks Stop A Chain

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts
View previous topic :: View next topic  
Author Message
ro



Joined: 19 Nov 2007
Posts: 1

PostPosted: Mon Nov 19, 2007 7:28 am    Post subject: How Can Simultaneous Tasks Stop A Chain Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Nov 19, 2007 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group