I want to run several autosys jobs in such a case, if it's running more than 30 min, terminate it and automatically rerun it. I tried the followlling jil:
n_retrys:3
term_run_time:30
But this jil only terminates the job after 30 min, no post rerun. Is there any solution of such a case in jil?
Thanks in advance.
You may need to create a helper job that runs on the condition of the termination of your original job and restarts it for you.
insert_job: Main_Job_Restarter
job_type: c
command: sendevent -E FORCE_STARTJOB Main_Job
condition: terminated(Main_Job)
With this, you can remove the n_retrys attribute from your original job but leave the term_run_time intact.