Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Proceed only if both of previous two jobs are succesful

  1. #1
    Join Date
    Sep 2011
    Posts
    171

    Default Proceed only if both of previous two jobs are succesful

    Hello Everyone,

    I have JobA and JobB. I have hop from JobA to JobC and hop from JobB to JobC. I would like to execute JobC only if both JobA and JobB were successful. I cannot put JobA and JobB consecutively, since I need them to execute irrespective of each other.

    Any ideas?

    Regards,
    Alex

  2. #2
    Join Date
    Sep 2009
    Posts
    810

    Default

    create jobWrapper, put JobA and JobB inside (execute in parallel if you wish). Let each fail (attach abort step) in case of an error. Do not create "success" steps in jobWrapper. Then create jobMain as [start]->[jobWrapper]-success->jobC. Attach a fail arrow to jobWrapper if you need special processing in case jobA or jobB failed.

    Cheers
    Slawo

  3. #3
    Join Date
    Sep 2011
    Posts
    171

    Default

    Excellent!

    I only came up with executing two jobs consecutively and reading the results and executing one job in parallel without continuation. You solution is more efficient, since it does not require executing the same job twice.

  4. #4
    Join Date
    Sep 2011
    Posts
    171

    Default

    I am still trying to understand why do you need success step? It seems to work without it.

  5. #5
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    For a lot of folks the Success and Abort job entries help in clearly visualizing the result of the job.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.