Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Limit number of job instances at a given time

  1. #1
    Join Date
    Jul 2007
    Posts
    10

    Question Limit number of job instances at a given time

    Hi all,

    I want to limit the execution of my job to one instance at a time. Because I am using intermediate files and when the same job is executed through a shell script, I find that sometimes second execution overtakes the first execution and thereby corrupting the intermediate files.

    So I want to know a possible way of limiting the exection of that job to one exection or instance at a time. Plz let me know the available solutions for my problem.

    Sayy

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    Use jobs and work with trigger files.

    Upfront make an "all clear" file manually, just an empty file.

    Code:
    - Let your job wait for the all clear file before starting (wait for file job entry)
               - if it's there 
                       Remove the "all clear" file
                       run the transformation
                       create the "all clear" file
               - Else just exit
    Only cleanup you have is when something happens with the transformation and it stops during processing e.g.

    Regards,
    Sven

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.