search cancel

Question about job dependency

book

Article ID: 237886

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

Hi, I'm trying to understand how Autosys will handle this scenario...

I have two jobs defined and Job1 has dependency on the first job (success)

FileWatcher (runs every 5 minutes looking for a file *.xml)
Job1 (depencey on success of FileWatcher above)

Sample run...
On the first FW job run at 1:00pm
 1. FW found a xml file
 2. Job1 starts (this job has varying runtime longer than 5 minutes)

On the second FW job run at 1:05pm
 1. FW found another xml file
 2. Job1 has success depency on FW (but previous Job1 is still running)
  Qestion: will this fork another job while the above first Job1 is still running?
   What will happen on second Job1 triggered by the second FW job at 1:05pm

Environment

Release : 12.0

Component : CA Workload Automation AE (AutoSys)

Resolution

While Job1 is running, even the FW job run to SUCCESS, it won't trigger Job1 as it's in RUNNING status.  Here is an example:

# autorep -J testFW01 -d

Job Name                                                         Last Start           Last End             ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
testFW01                                                         03/25/2022 18:38:11  03/25/2022 18:41:17  SU    61457/1  0

  Status/[Event]  Time                 Ntry ES  ProcessTime           Machine
  --------------  --------------------- --  --  --------------------- ----------------------------------------
  STARTING        03/25/2022 18:38:10    1  PD  03/25/2022 18:38:10   lvntest002315
  RUNNING         03/25/2022 18:38:11    1  PD  03/25/2022 18:38:12   lvntest002315
    <Monitored for CREATE>
  SUCCESS         03/25/2022 18:40:56    0  PD  03/25/2022 18:40:56
  SUCCESS         03/25/2022 18:41:17    0  PD  03/25/2022 18:41:17

 

# autorep -J testJob01 -d

Job Name                                                         Last Start           Last End             ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
testJob01                                                        03/25/2022 18:40:56  -----                RU    61459/1

  Status/[Event]  Time                 Ntry ES  ProcessTime           Machine
  --------------  --------------------- --  --  --------------------- ----------------------------------------
  STARTING        03/25/2022 18:40:56    1  PD  03/25/2022 18:40:56   lvntest002315
  RUNNING         03/25/2022 18:40:56    1  PD  03/25/2022 18:40:57   lvntest002315
    <Executing at WA_AGENT>

There are two SUCCESS events for testFW01 but only one job run for testJob01 which is triggered by the first SUCCESS event.  The second SUCCESS is processed but it does not kick off testJob01 which is in RUNNING status.