How to control the number and the delay of jobs restart ?

book

Article ID: 38196

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

Issue: 

Would like to be able to configure the number of trials for job restarts as well as the delay between the restart attempts.

 Environment:  

Workload Automation AE (AutoSys) any release

 Resolution:

Job restarts after System or Network failures are controlled by the “MaxRestartTrys” parameter.

The default value for “MaxRestartTrys” parameter is 10 (attempts).

 The delay between restarts is determined by the “RestartConstant” and “RestartFactor” parameters,

 up to the maximum specified by the “MaxRestartWait” parameter.

 The default values for these parameters are:

 RestartConstant=10   (seconds)

 RestartFactor=5  

 MaxRestartWait=300  (seconds)

  

These parameters are set in the config.$AUTOSERV file under $AUTOUSER directory.

 

The following formula is used to calculate the wait time:

  

WaitTime=RestartConstant+(Num_of_Trys*RestartFactor)

 

if WaitTime > MaxRestartWait,

then WaitTime = MaxRestartWait

 

The “Num_of_Trys” value is specified by the internal job starter counter, which indicates

 

the number of times AutoSys has already tried to start the job.

 

If the calculated wait time is greater than the specified value for the “MaxRestartWait” parameter,

then the wait time is set to the value of the “MaxRestartWait” parameter.

 

In case you would like to change the delay between the trials and/or the number of trials, then

the solution is to adapt these parameters in config.$AUTOSERV file under $AUTOUSER directory.

 

You will need to restart the Scheduler service for the modifications to be taken into account.

 

Note 1: Job restarts after “System or Network failures” are controlled by the “MaxRestartTrys” parameter.

While "application failures" like command or file not found, are controlled by the “n_retrys” jil attribute.

 The default value for “n_retrys” is 0.  It can be set to any integer value between 0 and 20 (attempts).

 

Note 2: On Windows, you can enter the equivalent values using the WA AE "Administrator" utility

and then restart the Scheduler service.

 

 

 


 

Environment

Release: ATSYHA99000-11.3.6-Workload Automation AE-High Availability Option
Component: