Search code examples
autosys

AutoSys Job re-run with fixed delay


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


Solution

  • 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)