Hi,
We have sequencer job which is not in restartable mode i.e. if it fails the entire process has to start from begining we do not want it to start from where it fails.
Can we reset the sequencer job from unix script we have all server jobs
in sequencer been set to reset if required and run.
Thanks
Reset the sequencer
Moderators: chulett, rschirm, roy
I think this can not be acheieved if the sequencer fails and its not in restartable mode how the unix script will run it i.e. the sequencer will be aborted state and hence can not be run.DSguru2B wrote:Dont make it restartable. And yes, reset it and then run. It will run from the begining.
We need to reset the sequencer if it aborts and then we have oprtion reset if required and run for all the server jobs called in job activity stages.
Thanks
...by reseting it from unix command
Code: Select all
dsjob -run -mode RESET <<PROJNAME>> <<SEQName>>
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
thanks...this will reset the sequencer everytime it runs....seems we need to check the return code for abort or failure and then reset if it has aborted .......just wndering what is the return code for job abort...i.e. my unix skills are too weak .......or you have a piece of code which satisfy the above.DSguru2B wrote:...by reseting it from unix commandCode: Select all
dsjob -run -mode RESET <<PROJNAME>> <<SEQName>>
Thanks for all help.
Thanks
Return code for an aborted job is 3. While running the job, stick in -jobstatus so that the return code of the command will be infact the job status which can be read by $?
Also, search the forum, you will find a variety of shell scripts that does this for you.
Also, search the forum, you will find a variety of shell scripts that does this for you.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
[quote="DSguru2B"]Return code for an aborted job is 3. While running the job, stick in -jobstatus so that the return code of the command will be infact the job status which can be read by [b]$?[/b]
Also, search the forum, you will find a variety of shell scripts that does this for you.[/quote]
Thanks :-)
Also, search the forum, you will find a variety of shell scripts that does this for you.[/quote]
Thanks :-)