Hitachi Vantara Pentaho Community Forums
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: How to abort a job after downtime

  1. #1
    Join Date
    Sep 2011
    Posts
    24

    Question How to abort a job after downtime

    I have a job that processes every 4 hours and even with abort after 1 hour of inactivity the process keeps accumulating on the linux server.
    Last edited by odivon; 06-13-2018 at 11:34 AM.

  2. #2
    Join Date
    Aug 2016
    Posts
    239

    Default

    The program always terminates after an abort. How could this not happen on your server?

  3. #3
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by Sparkles View Post
    The program always terminates after an abort. How could this not happen on your server?
    I have a job that processes every 4 hours and even with abort after 1 hour of inactivity the process keeps accumulating on the linux server.

  4. #4
    Join Date
    Aug 2016
    Posts
    239

    Default

    That sounds very strange. I have 2 jobs starting every hour and 4 jobs starting every 5 minutes on a linux server. Each one of them will either shut down after success or shut down after abort. I have never heard about a program that keeps running after it has aborted.

  5. #5
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by Sparkles View Post
    That sounds very strange. I have 2 jobs starting every hour and 4 jobs starting every 5 minutes on a linux server. Each one of them will either shut down after success or shut down after abort. I have never heard about a program that keeps running after it has aborted.
    strange even, and even I sent an email in the flow to abort, I received all the emails but when I checked the "top" of the linux server the processes were all there.

  6. #6
    Join Date
    Aug 2016
    Posts
    239

    Default

    Normally you would want to log to file instead or in addition to sending email, but I guess it gives the same result in your situation. Can you run a dummy-job, log to file, then abort?

  7. #7
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by Sparkles View Post
    Normally you would want to log to file instead or in addition to sending email, but I guess it gives the same result in your situation. Can you run a dummy-job, log to file, then abort?
    I have a job that runs every 4 hours if it takes more than 1 hour I want to abort, otherwise I will reboot the process and accumulate processing on the server.

  8. #8
    Join Date
    Sep 2011
    Posts
    24

    Default

    I managed to make it work by placing an "Abort" component at the end of the normal job stream, because the "Success" component does not end the job. The problem is that it gets in the log as if the load was not executed correctly. Is there any component that completes the job?

  9. #9
    Join Date
    Apr 2008
    Posts
    4,639

    Default

    Quote Originally Posted by odivon View Post
    I managed to make it work by placing an "Abort" component at the end of the normal job stream, because the "Success" component does not end the job. The problem is that it gets in the log as if the load was not executed correctly. Is there any component that completes the job?
    Try removing the Abort (or the Success) from the end of the job completely.
    If the last task is successful, it will report success. If it is not, it will not.

  10. #10
    Join Date
    Sep 2011
    Posts
    24

    Default

    Quote Originally Posted by gutlez View Post
    Try removing the Abort (or the Success) from the end of the job completely.
    If the last task is successful, it will report success. If it is not, it will not.
    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"

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.