Script in object to restart itself 3 times than fail

Discussion created by Scott_Mick_6152 on Jan 20, 2016
Latest reply on Feb 8, 2016 by Scott_Mick_6152
HI All, has anyone created a restart of an object via script?  I am trying to write a script that will restart itself 3 times when it fails and then abend after three.  I know I can do this via the result tab in task properties, but we have hundreds of jobplans that this one job runs in and we don't want to go through them all and set this parameter.  Please let me know if anyone has scripted this before.  thank