autosys

Job trigger on 40th day after quarter starts


The autosys job should trigger on the 40th day from the start of every quarter.

Scenario: 1 Jan 2021 + 40 days (inclusive start date) is on 9 Feb 2021

likewise, 10May2021 9Aug2021 9Nov2021

In case of the 40th day to be a non-working day (Sat and Sun), the job should be scheduled for the next business day.


Solution

  • Create an extended calendar as:

    extended_calendar: QUARTER_START_40_PLUS
    workday: mo,tu,we,th,fr
    non_workday: W
    holiday: W
    holcal:
    cyccal: 
    adjust: 39
    condition: jan#1|apr#1|jul#1|oct#1
    description: Runs on 40th day after start of quarter, incase its a sat or sun job runs on next mon
    

    Next Run Dates:

    09Aug2021
    09Nov2021
    09Feb2022
    10May2022