RERUN FAIL JOB after 120 SECONDS

All questions about Control-M jobs definitions
Post Reply
User avatar
arunveer
Nouveau
Nouveau
Posts: 5
Joined: 21 Apr 2011 12:00

RERUN FAIL JOB after 120 SECONDS

Post by arunveer » 21 Apr 2011 10:47

Hi,
I need to know how to rerun a job after 120 Seconds after first failure.
ARUNVEER

User avatar
nicolas_mulot
Nouveau
Nouveau
Posts: 149
Joined: 07 Jan 2010 12:00

Post by nicolas_mulot » 22 Apr 2011 4:48

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"

User avatar
arunveer
Nouveau
Nouveau
Posts: 5
Joined: 21 Apr 2011 12:00

thanks nicolas

Post by arunveer » 26 Apr 2011 5:13

Will i be getting a shout notification for the first failure if i set as below
Step Tab-->Code=NOTOK-->Shout-->Alert
ARUNVEER

User avatar
nicolas_mulot
Nouveau
Nouveau
Posts: 149
Joined: 07 Jan 2010 12:00

Post by nicolas_mulot » 26 Apr 2011 6:19

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

User avatar
arunveer
Nouveau
Nouveau
Posts: 5
Joined: 21 Apr 2011 12:00

Post by arunveer » 26 Apr 2011 7:12

thanks a lot
ARUNVEER

Post Reply