![Wink :wink:](./images/smilies/icon_wink.gif)
How to handle restarting of subsequnces in Failure cases
Moderators: chulett, rschirm, roy
If you are well versed in shell scripting you can write your own script.
Restartablilty can be handled by reading the job names from a file and running them sequentially, once any job fails, copy the rest of the job names from the file to another file.
Go investigate the error fix it. Next time you execute the script, it will look for the second file, if it exists that means the previous run was incomplete and will run the jobs from that file. Once all the jobs finish, it will delete the second file.
Next time when your script again, it will check for the second file, it does not exist, so it will go to the first file and get start running those jobs one by one.
Makes sense![Question :?:](./images/smilies/icon_question.gif)
Restartablilty can be handled by reading the job names from a file and running them sequentially, once any job fails, copy the rest of the job names from the file to another file.
Go investigate the error fix it. Next time you execute the script, it will look for the second file, if it exists that means the previous run was incomplete and will run the jobs from that file. Once all the jobs finish, it will delete the second file.
Next time when your script again, it will check for the second file, it does not exist, so it will go to the first file and get start running those jobs one by one.
Makes sense
![Question :?:](./images/smilies/icon_question.gif)
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 222
- Joined: Tue Aug 30, 2005 2:07 am
- Location: pune
- Contact:
Hi,
As per your requirement, It is must to abort your main sequence and then only you have a option of Restart of Main and Subsequence after failure.
It will not make any problem, even though your main sequence shows aborted. More ver, it is giving you a option of restarting of your failed sub sequences.
As per your requirement, It is must to abort your main sequence and then only you have a option of Restart of Main and Subsequence after failure.
It will not make any problem, even though your main sequence shows aborted. More ver, it is giving you a option of restarting of your failed sub sequences.
NageshSunkoji
If you know anything SHARE it.............
If you Don't know anything LEARN it...............
If you know anything SHARE it.............
If you Don't know anything LEARN it...............