AutoSys Workload Automation

 View Only
  • 1.  'n_retrys' doesn't work

    Posted Nov 30, 2021 12:00 PM
    Edited by jackorde Nov 30, 2021 12:06 PM
    Hello,

    This is my jil definition JIL below :

    /* ----------------- Stop_Start_Application ----------------- */

    insert_job: Stop_Start_Application   job_type: BOX
    box_name: Restart_Application_all
    owner: auto113
    permission: gx,ge,wx,we
    date_conditions: 0
    box_success: success(check_restart_TEST)
    box_failure: failure(check_restart_TEST)
    description: "Stop start application"
    n_retrys: 2
    alarm_if_fail: 1
    alarm_if_terminated: 1
    application: TEST



    /* ----------------- start_application_TEST ----------------- */

    insert_job: start_application_TEST job_type: CMD
    box_name: Stop_Start_Application
    command: start_job1.ksh
    machine: localhost
    owner: job1
    permission: gx,wx
    date_conditions: 0
    condition: success(stop_application_TEST)
    description: "Start application"
    alarm_if_fail: 1
    alarm_if_terminated: 1
    application: TEST

    /* ----------------- stop_application_TEST ----------------- */

    insert_job: stop_application_TEST job_type: CMD
    box_name: Stop_Start_Application
    command: stop_job1.ksh
    machine: localhost
    owner: job1
    permission: gx,wx
    date_conditions: 0
    description: "Stop application"
    alarm_if_fail: 1
    alarm_if_terminated: 1
    application: TEST



    /* ----------------- check_restart_TEST ----------------- */

    insert_job: check_restart_TEST job_type: CMD
    box_name: Stop_Start_Application
    command: check_restart.ksh
    machine: localhost
    owner: job1
    permission: gx,wx
    date_conditions: 0
    condition: success(start_application_TEST)
    description: "check restart application"
    alarm_if_fail: 1
    alarm_if_terminated: 1
    application: TEST

    For testing, job and box are in errors and the Box don't retry as requested with 'n_retrys'. Have you an idea ? As well, i put box_success and box_failure parameters, i wonder if it is really useful. Maybe 'n_retrys' is linked with another parameter.

    Thank you for your help.

    Best regards,
    Jacques


  • 2.  RE: 'n_retrys' doesn't work

    Posted Dec 01, 2021 02:28 AM
    Don't believe n_retrys is applicable to BOX jobs. 
    Documentation isn't very clear
    n_retrys Attribute -- Define the Number of Times to Restart a Job After a Failure
    Broadcom remove preview
    n_retrys Attribute -- Define the Number of Times to Restart a Job After a Failure
    View this on Broadcom >

    This attribute applies to application failures (for example, AutoSys Workload Automation cannot find a file or a command, permissions are not properly set, and so on).

    The n_retrys value applies when the command associated with the job fails. When a job fails for other reasons, such as **** credentials or unavailable space, the MaxRestartTrys value in the configuration file defines how many times the job should be restarted. When the MaxRestartTrys value is zero, the job is not restarted.