Automic Workload Automation

  • 1.  restart batch in jobgroup

    Posted Jul 27, 2018 11:27 AM

    Hi,

     

    I have a workflow that contains a jobgroup. The jobs that are executed in the jobgroup sometimes failed. 

    I want to create a script to restart this failed jobs in this jobgroup. I can use the option RESTART_UC_OBJECT and I don't receive error but the jobs stay in status "Registered" in het activity window. This because they were executed in a jobgroup I think. Is there a workaround for this?

     

    thx!

    br

    Sören



  • 2.  Re: restart batch in jobgroup

    Posted Jul 27, 2018 02:39 PM

    I have only played with job groups out of curiosity, and have never implemented one.  But I believe when a job is in a "Registered" state, you must then execute the group to cause the registered tasks to launch.



  • 3.  Re: restart batch in jobgroup
    Best Answer

    Posted Jul 30, 2018 03:48 PM

    Hi Sören,

     

    the problem in your case is that you also have to restart the group object in your workflow.

     

    the group will get the highest returncode of the jobs manged by the group instance. So the group will abort if one or more jobs handled by the group abort.

     

    So to do so:

     

    You use the RESTART_UC_OBJECT as you do.

    In the post condition of the group you restart the group object if the group task is ENDED_NOT_OK

     

    The restart of the group automatically will process your job

     

    Regards

    Thomas