Automic Workload Automation

 View Only
  • 1.  automatic restart for job in abend

    Posted Sep 15, 2020 09:47 AM
    Hi everyone,
    in case of a job in ko is it possible to set an automatic rerun?


  • 2.  RE: automatic restart for job in abend

    Broadcom Employee
    Posted Sep 15, 2020 09:59 AM
    Hi @vincenzo manna

    You may need to use GET_UC_OBJECT_STATUS and RESTART_UC_OBJECT. Please see the links below.

    https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/RESTART_UC_OBJECT.htm

    https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/GET_UC_OBJECT_STATUS.htm


    Thanks
    Bobby


  • 3.  RE: automatic restart for job in abend

    Posted Sep 16, 2020 09:52 AM
    Hi @Bobby Tamayo,

    i have insert the string below in to POST PROCESS of my job, but if job ending ko or ok, then restarting anyway

    :SET &RET# = RESTART_UC_OBJECT ("TESTKO_RERUN",LAST,,"ONLY_ABENDED") ​


  • 4.  RE: automatic restart for job in abend
    Best Answer

    Posted Sep 17, 2020 01:56 AM
    Hi Vincenzo,

    if your job is in a workflow, you can use the "post-condition" to rerun a job if it fails.

    Best regards
    Bernhard

    ------------------------------
    Landeshauptstadt München
    ------------------------------



  • 5.  RE: automatic restart for job in abend

    Posted Oct 16, 2020 03:36 AM
    Hi @​Bernhard Flegel,
    even putting the rerun command in a job contained in a workflow, this always re-launches regardless of the state in which it ends


  • 6.  RE: automatic restart for job in abend

    Posted Oct 16, 2020 11:48 AM
    It is preferable to use a postcondition rule like this one;


    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------