Automic Workload Automation

 View Only
  • 1.  Prevent two Jobs from running concurrently

    Posted Nov 29, 2019 01:11 PM

    Hi All,

    I'm setting up a Schedule in Automic for my daily jobs. I have two jobs that are scheduled a hour apart from each other. But if the first one isn't complete I want the second job to wait until the first job is completed.


    Does anyone knows how to preform this?



  • 2.  RE: Prevent two Jobs from running concurrently

    Posted Nov 30, 2019 04:35 AM
    Hi Norman,

    if it is the same job object you can use the „max parallel" or in AWI the „concurrently executions allowed" textbox, where you can enter 1 and set the action to wait.

    if both are different objects: thats what Sync objects are for.
    just search in the documentation for sync. On the page is a very good example for your use case: https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#AWA/Objects/obj_SyncUsing.htm

    hope this helps!

    best regards 
    Stephan


  • 3.  RE: Prevent two Jobs from running concurrently

    Posted Nov 30, 2019 11:18 AM
    Edited by Frank Muffke Nov 30, 2019 11:21 AM
    Hoi,

    another possibility (if you do not like SYNCs) would be using a seperate Queue with one allowed slot and one job uses one slot.
    Ensure that only these jobs run in the queue.

    Example:


    cheers, Wolfgang

    ------------------------------
    Support Info:
    if you are using one of the latest version of UC4 / AWA / One Automation please get in contact with Support to open a ticket.
    Otherwise update/upgrade your system and check if the problem still exists.
    ------------------------------



  • 4.  RE: Prevent two Jobs from running concurrently
    Best Answer

    Posted Dec 01, 2019 12:07 AM
    Hi Norman,
    We have many objects that are dependent on another object NOT being active. We don't allow our users to use External Dependencies, or SYNC Objects. 

    Below is direct from our Confluence pages for our 1200 Users to follow.
    We can use 'Precondition' option in 'Task properties' in the job (from a workflow) to achieve it. Below GIF should explain how to do this.



    ------------------------------
    Founder and Partner
    Data Center Automation Consultants DCAC
    ------------------------------



  • 5.  RE: Prevent two Jobs from running concurrently

    Posted Dec 01, 2019 06:52 AM
    Hi Brian,

    Thanks for the feedback. Your suggestion sounds really simple. Can you resend the GIF that you mentioned in the previous post. Can't seem to pull it up.

    Thanks again,


  • 6.  RE: Prevent two Jobs from running concurrently

    Posted Dec 03, 2019 03:04 PM
    Here you go Norman.


    ------------------------------
    Founder and Partner
    Data Center Automation Consultants DCAC
    ------------------------------



  • 7.  RE: Prevent two Jobs from running concurrently

    Posted Dec 02, 2019 12:47 AM
    Hi Norman,

    and a fourth possibility: Use a workflow. Create a workflow and add both jobs in dependency. For the second job you can use an "Earliest Start Time" (Tab Time & Dependencies) or a Pre-Condition "TIME SINCE ACTIVATION".

    Best regards,
    Tim

    ------------------------------
    Automation Evangelist
    Fiducia & GAD IT AG
    ---
    Mitglied des deutschsprachigen Automic-Anwendervereins FOKUS e.V.
    Member of the German speaking Automic user association FOKUS e.V.
    ------------------------------