Hi,
I need to know how to rerun a job after 120 Seconds after first failure.
RERUN FAIL JOB after 120 SECONDS
- nicolas_mulot
- Nouveau
- Posts: 149
- Joined: 07 Jan 2010 12:00
arunveer,
The "Interval" parameter(s) you find in the "Execution" tab, which looks to be designed for cyclic jobs only, also acts for Do Rerun actions.
You cannot rerun a cyclic job and this parameter acts for both cases.
The smallest rerun interval unit is minutes: specify 2 minutes for 120 seconds.
Dont forget to enter a "maximum rerun" value different of 0, or else, the DoRerun will be ineffective: you will see in the control-m log of the job something like "a rerun has been attempted but the rerun counter is exhausted"
The "Interval" parameter(s) you find in the "Execution" tab, which looks to be designed for cyclic jobs only, also acts for Do Rerun actions.
You cannot rerun a cyclic job and this parameter acts for both cases.
The smallest rerun interval unit is minutes: specify 2 minutes for 120 seconds.
Dont forget to enter a "maximum rerun" value different of 0, or else, the DoRerun will be ineffective: you will see in the control-m log of the job something like "a rerun has been attempted but the rerun counter is exhausted"
thanks nicolas
Will i be getting a shout notification for the first failure if i set as below
Step Tab-->Code=NOTOK-->Shout-->Alert
Step Tab-->Code=NOTOK-->Shout-->Alert
ARUNVEER
- nicolas_mulot
- Nouveau
- Posts: 149
- Joined: 07 Jan 2010 12:00
There is no easy way to send an alert on the first failure only. It is possible, but I don’t believe it is our case for now.
The best is to specify alarm and rerun together
On Stmt * Code NOTOK
Do Rerun
Do Shout <blabla>
The shout will be sent every time the job fails.
You can limit the number of automatic reruns using the MaxRerun parameter (“Execution” tab) with the value of 1.
On the first failure, your job will be rerun and the Shout will be sent.
On the second failure, your job will be ended NOTOK (red) and the Shout will be sent again.
On the 10th failure, someone will probably be fired
The best is to specify alarm and rerun together
On Stmt * Code NOTOK
Do Rerun
Do Shout <blabla>
The shout will be sent every time the job fails.
You can limit the number of automatic reruns using the MaxRerun parameter (“Execution” tab) with the value of 1.
On the first failure, your job will be rerun and the Shout will be sent.
On the second failure, your job will be ended NOTOK (red) and the Shout will be sent again.
On the 10th failure, someone will probably be fired