Page 1 of 1

Resetting a hierarchy of seqences

Posted: Thu Oct 27, 2011 9:43 pm
by evee1
I have a hierarchy of sequences in which failure of a sequence in the lowest level causes all the sequences "above" it abort (which is the expected behaviour).
Currently, when the problem is fixed and I would like to restart processing from the beginning, I have to reset every single sequence in a hierarchy. there are only four of them, but enough to make support people complain :wink:.
Is there a way to reset only the highest level sequence and make all the other to follow?

Posted: Thu Oct 27, 2011 9:58 pm
by chulett
No, not that I've ever seen.

Posted: Fri Oct 28, 2011 5:19 am
by suse_dk
Can't you problem be solved by setting the execution action to "Reset if required, then run" for all sub sequencers? Then it should only be necessary for support to reset the top sequencer...

Posted: Fri Oct 28, 2011 7:31 am
by chulett
suse_dk wrote:Can't you problem be solved by setting the execution action to "Reset if required, then run" for all sub sequencers? Then it should only be necessary for support to reset the top sequencer...
Only if you never want to be able to do a checkpoint restart.

Posted: Fri Oct 28, 2011 8:11 am
by chulett
That doesn't mean you couldn't build something clever to work around this issue. I'm thinking a job parameter, probably of a List type with two simple values, yes or no. Add a new routine that you write to the job flow and branch around it for normal runs since it defaults to 'No'. On a reset run, flip the parameter to 'Yes' so the routine runs first in the flow. It then goes out and uses the API to reset the three sub-sequence jobs.

Of course, you'll still need to reset the master sequence manually but that would simplify things for the operators. Or you could just tell them to suck it and reset the sub-sequences manually as well. How onerous could it be? :wink:

Posted: Sun Oct 30, 2011 4:05 pm
by evee1
I definitely need to be able to do checkpointed run.
Thanks for the idea Craig. I might do as you suggest if there is a lot of noise ;-). In the setup we've got it should be relatively easy to do it, as there is one high level sequence for each stream that may require resetting (they are run by ControlM so the value of the parameter may be passed from there).