- Re-execute itself if it fails and run_window did not expire.
- Will not re-execute after first success even if the run window is not expired.
- Will not re-execute itself if it fails and run_window is expired.
The definition:
/* ----------------- PREFIX_D_TEST_N_RETRYS_DEV ----------------- */
insert_job: PREFIX_D_TEST_N_RETRYS_DEV job_type: b
owner: owner@server1
permission: gx,mx,me
date_conditions: 1
days_of_week: su,mo,tu,we,th,fr,sa
start_times: "16:38"
n_retrys: 3
run_window: "15:30-17:30"
box_success: success(PREFIX_D_TEST_N_RETRYS_1_DEV) AND success(PREFIX_D_TEST_N_RETRYS_2_DEV)
box_failure: failure(PREFIX_D_TEST_N_RETRYS_1_DEV) OR failure(PREFIX_D_TEST_N_RETRYS_2_DEV)
description: "This is box job which will re-execute itself 3 times until it succeeds rovided run window did not expire"
std_out_file: /autosys/logs/output/$AUTO_JOB_NAME.`date "+%m%d"`.out
std_err_file: /autosys/logs/error/$AUTO_JOB_NAME.`date "+%m%d"`.err
alarm_if_fail: 1
profile: /autosys/profile/autoprofile
/* ----------------- PREFIX_D_TEST_N_RETRYS_1_DEV ----------------- */
insert_job: PREFIX_D_TEST_N_RETRYS_1_DEV job_type: c
box_name: PREFIX_D_TEST_N_RETRYS_DEV
command: rmdir /autosys/test
machine: server1
owner: owner@server1
permission: gx,mx,me
description: "This job will fail until /autosys/test is not created; it will be successful once directory is created."
std_out_file: /autosys/logs/output/$AUTO_JOB_NAME.`date "+%m%d%H%M"`.out
std_err_file: /autosys/logs/error/$AUTO_JOB_NAME.`date "+%m%d%H%M"`.err
alarm_if_fail: 1
profile: /autosys/profile/autoprofile
/* ----------------- PREFIX_D_TEST_N_RETRYS_2_DEV ----------------- */
insert_job: PREFIX_D_TEST_N_RETRYS_2_DEV job_type: c
box_name: PREFIX_D_TEST_N_RETRYS_DEV
command: echo "Job 2"
machine: server1
owner: owner@server1
permission: gx,mx,me
condition: success(PREFIX_D_TEST_N_RETRYS_1_DEV)
description: "This will always be successful"
std_out_file: /autosys/logs/output/$AUTO_JOB_NAME.`date "+%m%d%H%M"`.out
std_err_file: /autosys/logs/error/$AUTO_JOB_NAME.`date "+%m%d%H%M"`.err
alarm_if_fail: 1
profile: /autosys/profile/autoprofile