Hi All,
I have a scenario to schedule a job execute in below condition.
BOX to start at 14:00 on Mo, Tu, We, Th, Fr calendars
Job 1 to run at 01 AM next day (Tu,We,Th,fr,sa)
Job 2 to run at 17 PM same day (Mo, Tu, We, Th, Fr calendars)
I have setup like this,
insert_job: BOX1 job_type: box days_of_week: mo,tu,we,th,fr start_times: "14:00"
insert_job: Job1 job_type: CMD machine: PRD box_name: BOX1 command: "sleep 900" owner: autsys
description: "Sleep job for 15 minutes" days_of_week: tu,we,th,fr,sa start_times: "1:00"
insert_job: job2 job_type: CMD machine: PRD box_name: BOX1 command: "sleep 900" owner: autsys
description: "Sleep job for 15 minutes" days_of_week: mo,tu,we,th,fr start_times: "17:00"
Behavior:
Iteration 1: Box Job start running on 14:00 on MO, Job2 starts at 17:00 on Mo, Job Job 1 starts at 1 AM on Tu
Iteration 2: Box Job start running on 14:00 on Tu, Job2 starts at 17:00 on Tu, Job Job 1 starts at 14:00 PM on Tu (instead of Wednesday 1 AM)
...
Iteration 5: BOX Job starts running on 14:00 on fr, Job2 starts at 17:00 on fr, Job Job 1 starts at 14:00 PM on fr (instead of Saturday 1 AM)
I have introduced Run-window on Job 1 as "01:00-13:55", it's scheduled as expected. And running as per my expectation, But BOX status goes to Success as soon as runwindow is crossed & again loaded fresh. Need to understand the behavior of the BOX & runwindow. Attached a snapshot of running cycles.
insert_job: BOX1 job_type: box days_of_week: mo,tu,we,th,fr start_times: "14:00"
insert_job: Job1 job_type: CMD machine: PRD box_name: BOX1 command: "sleep 900" owner: autsys
description: "Sleep job for 15 minutes" run_window: "01:00-13:55" days_of_week: tu,we,th,fr,sa start_times: "1:00"
insert_job: job2 job_type: CMD machine: PRD box_name: BOX1 command: "sleep 900" owner: autsys
description: "Sleep job for 15 minutes" days_of_week: mo,tu,we,th,fr start_times: "17:00"
Thanks