AutoSys Workload Automation

 View Only
  • 1.  Need help on a specific scenario in autosys

    Posted Aug 05, 2022 05:11 AM
    Hi,
    Good day. I am having scenario where if a predecessor job ran in the last 4 hours the successor job should not run.
    The tried the lookback option but it just triggers the job but I don't want the job to trigger.
    Ex:
    JobB depends on success of jobA but JobB should not trigger if the JobA ran within last 4 hours.
    Any help would be appreciated.
    Thanks.


  • 2.  RE: Need help on a specific scenario in autosys

    Posted Aug 08, 2022 09:20 AM
    I have not tried this myself, but would the answer be something like this...
    s(jobA) AND NOT s(jobA, 4)

    (I don't see where the use of "NOT" is allowed in the AutoSys documentation, so not sure this would work.)

    I also wonder if
    s(jobA) AND notrunning (jobA, 4)
    would work.


  • 3.  RE: Need help on a specific scenario in autosys

    Broadcom Employee
    Posted Aug 09, 2022 08:54 PM
    I would suggest adding an additional job into the flow.  So jobA is the same, but add new jobAdelay that would sleep for 4 hours and have jobB run on success of JobAdelay.  If jobB has other dependencies, it will still need to wait for the new job to complete before triggering.

    Regards,
    Mike