Events and different types in Autosys and also how it works

Events


Events are fundamental to Autosys (now part of Broadcom's AutoSys Workload Automation) as they drive job scheduling, dependencies, and workflow automation. 

Below is a detailed breakdown of how events function in Autosys:

What Are Events in Autosys?


Events are status changes or triggers that affect job execution. They can be:

System-generated (e.g., job completion, failure, or start time).

  • User-generated (e.g., manual job triggers or external signals).




Key Characteristics:


Events determine when a job starts, stops, or retries.

  • They enable job dependencies (e.g., Job B runs only after Job A succeeds).


    Used for alerting (e.g., notify admins if a job fails).


    Types of Events in Autosys:


    Job Status Events


    EventDescription
    STARTJOBJob begins execution.
    SUCCESSJob completes successfully (exit code 0).
    FAILUREJob fails (non-zero exit code).
    TERMINATEDJob was manually killed (sendevent -E KILLJOB).
    RESTARTJob is set to retry after failure.


  • Dependency Events


    Used to control job workflows:

    EventDescription
    JOB_SUCCESSFires when a dependent job succeeds.
    JOB_FAILUREFires when a dependent job fails.
    FILE_ARRIVALTriggered when a file appears in a specified path.
    TIME_TRIGGERScheduled event (e.g., run_calendar: business_days).



    External & Custom Events:


    EventDescription
    ALARMUsed for notifications (e.g., sendevent -E ALARM).
    USER_EVENTCustom triggers (e.g., sendevent -E USER_EVENT -P "DATA=value").


    How Events Work:

    Event Flow Example:


    1. Job A runs and finishes with SUCCESS.

      1. Autosys generates a JOB_SUCCESS event for Job A.

        1. Job B (dependent on Job A) receives the event and starts.



          Event-Driven Automation:

           File watcher:

          insert_job: FILE_WATCHER
          command: touch /tmp/trigger.file
          condition: FILE_ARRIVAL(/data/incoming/file.txt)

          Time-Based:

          insert_job: NIGHTLY_BACKUP
          run_calendar: DAILY
          start_times: "02:00"

Comments

Popular posts from this blog

Interview question for File and FTP Adapter

What is boot.properties file and how to create

SSL Exceptions in Admin Server and Node Manager.