How to automatically restart a failed job?

Document ID : KB000050353
Last Modified Date : 14/02/2018
Show Technical Document Details

The n_retrys job definition parameter instructs AutoSys to restart the job N number of times upon failure.

Sample JIL:
update_job: Job_a
job_type: c
command: false 1
machine: localhost
n_retrys: 2

Job_a's definition tells AutoSys to restart the job up to 2 times if it initially runs to FAILURE. If after 2 retries the job still does not run to SUCCESS, the job will be set to FAILURE (FA) status and an alarm of type MAX_RETRYS will be generated to alert you that the n_retrys have been exceeded for this job.

For more details on job definition parameters like n_retrys please review the Unicenter AutoSys Job Management Reference Guide.