Automic Workload Automation

 View Only
  • 1.  Dependency Execution

    Posted Jul 08, 2020 10:10 AM
    Hi All,

    We do have a Scenario where we do have two jobs by name A and B.

    A depends on B and if A is Ended ok then B can trigger.

    But, we also require in other way where if A is Ended Not ok/Aborted then B should Start as a regular Execution.Can some one help us out here with this Scenario ?


  • 2.  RE: Dependency Execution

    Posted Jul 08, 2020 10:20 AM

    Hi.

    Sure, here 'ya go:


    Hth,



  • 3.  RE: Dependency Execution

    Posted Jul 08, 2020 10:43 AM
    Hi Carsten,

    Thanks for your quick response but this Particular change of Properties will work only for my 2nd Scenario but can i know how it can satisfy my 1st scenario also ?

    If A is ended ok Normally then my B should Execute as usual.

    I am getting below issue with change of Properties where my Successor job is Skipping(but i require it to Execute as Normal Way)


    Output of it :






  • 4.  RE: Dependency Execution

    Posted Jul 08, 2020 11:24 AM
    Hi Pavan Shashikanth Guddeti,

    I'm not entirely sure I understand. These scenarios are mutually exclusive:

    • one, you want B to execute only if A failed: set it to "if A ENDED_NOT_OK, else skip task"
    • two, you want B to execute if A works fine: set it to ENDED_OK, else skip task"

    Or, if you want B to execute regardless of the status of A, set no dependency at all. Just leave it empty, that will make B execute regardless of how A ended.

    Your screenshot would appear to show scenario one: Job A was ENDED_OK, the condition for B was "run if A ENDED_NOT_OK, else skip", and thus, B was skipped.

    Best regards,
    Carsten


  • 5.  RE: Dependency Execution

    Posted Jul 08, 2020 11:31 AM
    yeah Carsten,

    What you mentioned is true.

    My requirement needs to Satisy both of your Scenario's.

    • one, you want B to execute only if A failed: set it to "if A ENDED_NOT_OK, else skip task"
    • two, you want B to execute if A works fine: set it to ENDED_OK, else skip task"

    Can i know if both of them can be accommodated together?


  • 6.  RE: Dependency Execution
    Best Answer

    Posted Jul 08, 2020 11:44 AM
    Edited by Christopher Hackett Jul 29, 2020 03:58 PM
    Quote:
    > Can i know if both of them can be accommodated together?

    Ahem ... didn't I already say this?

    Or, if you want B to execute regardless of the status of A, set no dependency at all. Just leave it empty, that will make B execute regardless of how A ended.

    There IS an empty choice in that drop-down where it says "ENDED_NOT_OK". You can select that empty entry to empty out the field.

    Of course, you could also set "ENDED_NOT_OK" and "ENDED_OK" in two separate lines, then check the "at least one status matches" option - but that would possibly be silly, as those two "top level" states already encompass pretty much everything there is.

    ------------------------------
    # signature.sh --verbose=[true|false]
    # no configurables beyond this point, only signature

    Calendar Quote of the Month:
    "The point of a DR test with a remote site is usually to be operational when your main site gets flooded / set on fire / invaded by Ninjas at an inconvenient moment."

    Did you know?
    Using the slide show widget for posting individual images is wrong! Please use the "insert image" button in the editor.

    Pro Tip: I will NOT respond to PM asking for help unless there's an actual reason to keep the discussion off of the public forums!

    'Efficient Solutions Monthly Magazine' says:
    "Asking questions the right way never hurts!"

    Here, have some tips:
    http://www.catb.org/~esr/faqs/smart-questions.html
    https://www.chiark.greenend.org.uk/~sgtatham/bugs.html
    ------------------------------



  • 7.  RE: Dependency Execution

    Posted Jul 08, 2020 01:22 PM
    Thanks Carsten for your quick responses.

    Actually, I didnt understand this line .

    "There IS an empty choice in that drop-down where it says "ENDED_NOT_OK". You can select that empty entry to empty out the field."

    If possible can you Share me any Screenshot related to it which will be much helpful 



  • 8.  RE: Dependency Execution

    Posted Jul 08, 2020 01:50 PM
    Thanks Carsten,

    Now i understood your line meaning and it is working as Expected.

    Thank you for your responses.


  • 9.  RE: Dependency Execution

    Posted Jul 09, 2020 04:18 AM

    Hi,

    This is what I mean by it:


    Hth,



  • 10.  RE: Dependency Execution

    Posted Jul 09, 2020 04:20 AM
    Sorry, seen your other message before this one.

    Happy it works for you.