4

I need autosys to rerun my job in case of failure N number of times with a fixed delay between re-runs, i.e. Autosys should wait for 10 minutes before re-running the job. Is this possible?

Thanks

Prakash
  • 461
  • 1
  • 5
  • 21

1 Answers1

0

You can achieve your requirement by using two Autosys jobs mentioned as below. shown only specific configurations as other configurations should be as per your environment and execution need.

Job 1 :

sample jil code / Writing jil code:

insert_job: job1
job_type: c
permission: gx,ge,wx,we,mx,me
days_of_week: all
description: “description field”
n_retrys: 10  // Number of failure
term_run_time: 60
profile: /tmp/.profile

Job 2 :

insert_job : job12
command: sleep 300  // specify your time duration in seconds
condition: failure(job1)
Alpesh Gediya
  • 3,706
  • 1
  • 25
  • 38
  • Is it not possible to achieve without having two jobs? I was thinking based on a return status from the job is autosys not smart enough to rerun the job after waiting for say 10 mins? – Prakash Dec 16 '16 at 13:34
  • 1
    How does the control passed back to the first job? It fails, the second job waits, but the first one will start independently from the second one. – Pavel Botygin Oct 11 '21 at 16:11