AutoSys Workload Automation

  • 1.  Job wait in a window time

    Posted Nov 12, 2018 12:32 PM

    Hi,

     

    I have an file trigger application with some jobs. For one of the jobs, if the file trigger start in a window time ( 21H00 to 02H00 ), I need that this x job runs at 05H00. Allways must be run, but out that range of hours.

     

     

     

    I have WA DE 12.02.

     

    Thanks in advance



  • 2.  Re: Job wait in a window time
    Best Answer

    Broadcom Employee
    Posted Nov 14, 2018 06:00 PM

    If the x job must run at 05:00, you can delay the job's submission in Time dependencies 'Do not submit before' 05:00 in the job.

    If you need to check the hour the application starts to run, try to use the built-in APPL._RHH variable in a javascript in the job at run time. For example, 

    if (APPL._RHH >= '21' || APPL._RHH <= '02') WOB.time = '5am';

    And, use the %WOB.time variable as the job's run criteria.

     

    Hope this helps.