Search code examples
autosys

How to schedule AutoSys job to run between 1:00 AM EST till 1:30 AM EST


I have scenario where i want to create a Autosys scheduling job.

which should run from Monday till Friday only that too between time 1:00 AM EST till 1:30 AM EST

Should check every 10 minutes from 1:00 till 1:30 AM EST only

I tried this :

run_window : 11:00-11:30

How to achieve that every 10 minutes ? and calendar creation


Solution

  • Day and time condition for this scenario can be configured at job level and no explicit calendar creation is required.

    insert_job: WeekDay_MidNight_Job
    job_type: CMD 
    machine: localhost
    command: bash /absolute_path/script_name.sh
    run_window : 00:55-01:35                     /* Job activates 5 min prior to actual run */
    start_mins: 0,10,20,30                       /* Of every 0,10,20,30 minutes of the hour, the job gets triggered, for this case 01:00, 01:10, 01:20 and 01:30 */
    days_of_week: mo,tu,we,th,fr                 /* Days of the week */
    exclude_calendar: Holiday_Calendar_Name      /* Skips run on defined holidays */
    timezone: US/Eastern
    

    Use timezone attribute from the "tz database name" column from here

    The same is also possible with use of extended calendar and cycles.

    Autosys User Manual here