Hitachi Vantara Pentaho Community Forums
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: How to abort a job after downtime

  1. #11
    Join Date
    Apr 2008
    Posts
    4,598

    Default

    Quote Originally Posted by odivon View Post
    even by removing "Abort" or "Success" the "Wait for" component continues to wait for the given time ... the job is not finished until the "Wait for"
    That sounds like you have a design problem then.

    If you are using parallel entries in Jobs, you have to be extremely careful.

    Perhaps you could tell us more about the design of this job. Jobs were not originally intended to run in parallel - it was a sequential step.

  2. #12
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by gutlez View Post
    That sounds like you have a design problem then.

    If you are using parallel entries in Jobs, you have to be extremely careful.

    Perhaps you could tell us more about the design of this job. Jobs were not originally intended to run in parallel - it was a sequential step.

    At the start the "Start" component job exits 2 hops in parallel 1 of them for a "wait for" component with a time of 1 hour, if the job does not finish at that time the "wait for" component triggers an "Abort". This is how it works, the problem is that in the normal flow I also have to by an "Abort" component in the end, otherwise it does not end the flow and stays for 1 hour waiting to finish the "wait for". did you get it?

  3. #13
    Join Date
    Apr 2008
    Posts
    4,598

    Default

    Yes, and that's not how parallel is intended to be used.
    The reason you are collecting processes is because the "Wait For" is still running, but you've also already declared success.

    PDI wasn't designed to allow you to have a "Run this process for 1 hour, and if it hasn't finished, kill it"
    PDI was designed for repeatable data transfer.

    Revisit how you are killing the process, and why.

  4. #14
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by gutlez View Post
    Yes, and that's not how parallel is intended to be used.
    The reason you are collecting processes is because the "Wait For" is still running, but you've also already declared success.

    PDI wasn't designed to allow you to have a "Run this process for 1 hour, and if it hasn't finished, kill it"
    PDI was designed for repeatable data transfer.

    Revisit how you are killing the process, and why.
    Is there any way to do this? cancel the game if it does not finish in a certain time? (timeout)

  5. #15
    Join Date
    Apr 2008
    Posts
    4,598

    Default

    Quote Originally Posted by odivon View Post
    Is there any way to do this? cancel the game if it does not finish in a certain time? (timeout)
    None that are built into PDI at this time.

  6. #16
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by gutlez View Post
    None that are built into PDI at this time.
    Okay, that's what I wanted to know from someone more experienced, so I'm not wasting time trying.

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 - 2017 Pentaho Corporation. All Rights Reserved.