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

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


Article ID: 38196


Updated On:


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



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


Workload Automation AE (AutoSys) any release


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)


 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:




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.






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