We are trying to understand why a box is going to success when the box_success conditions are not being met.
/* ----------------- keith_1 ----------------- */
insert_job: keith_1 job_type: CMD
command: exit 1
machine: localhost
owner: autosys
date_conditions: 0
alarm_if_fail: 1
alarm_if_terminated: 1
/* ----------------- keith_1_box ----------------- */
insert_job: keith_1_box job_type: BOX
owner: autosys
date_conditions: 0
box_success: s(keith_1)
term_run_time: 1
alarm_if_fail: 1
alarm_if_terminated: 1
Note that the "keith_1" job is NOT inside the box and the box itself does not contain any jobs.
I run the first job and it fails as expected, but the second job immediately goes to success even though the box_success condition was not met:
Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
keith_1 02/03/2022 09:16:07 02/03/2022 09:16:07 FA 3645807/1 1
Status/[Event] Time Ntry ES ProcessTime Machine
-------------- --------------------- -- -- --------------------- ----------------------------------------
STARTING 02/03/2022 09:16:06 1 PD 02/03/2022 09:16:07 localhost
RUNNING 02/03/2022 09:16:07 1 PD 02/03/2022 09:16:07 localhost
<Executing at WA_AGENT>
FAILURE 02/03/2022 09:16:07 1 PD 02/03/2022 09:16:13
[*** ALARM ***]
JOBFAILURE 02/03/2022 09:16:13 1 PD 02/03/2022 09:16:13 localhost
keith_1_box 02/03/2022 09:18:22 02/03/2022 09:18:23 SU 3645816/1 0
Status/[Event] Time Ntry ES ProcessTime Machine
-------------- --------------------- -- -- --------------------- ----------------------------------------
RUNNING 02/03/2022 09:18:22 1 PD 02/03/2022 09:18:23
SUCCESS 02/03/2022 09:18:23 1 PD 02/03/2022 09:18:30
[CHK_BOX_TERM] 02/03/2022 09:19:22 1 PD 02/03/2022 09:18:30
Does box_success not get used when a box is empty?
Workload Automation AE (AutoSys)
01. If the box has no children, when the box is started, it goes to RUNNING and goes to SUCCESS immediately ignoring the box_success.
02. The box_success attribute is evaluated by the child jobs of that box as the process their events.