Results 1 to 4 of 4

Thread: run the same job to completion multiple times

  1. #1
    Join Date
    Sep 2007
    Posts
    16

    Default run the same job to completion multiple times

    Migrating from an older version of the framework I notice that the column Job Run seems to have disappeared. Is it still possible to run a job to completion multiple times?

    Setting all the steps to "allowStartIfComplete" is not an option, because the job can only restart from the beginning if all steps have completed succesfully. If this is not the case the restart should begin at the step that failed.

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    Which version of the framework did you upgrade to? In milestone 3, there is a Job Key and a schedule date column. You can easily increment a string key the same way you did job run to create a new Job Instance. In Milestone 4, a new object, JobParameters, has been introduced. This allows for much more flexibility by letting you set your own parameters (jobParametersBuilder.addString().addLong())

  3. #3
    Join Date
    Sep 2007
    Posts
    16

    Default

    Quote Originally Posted by lucasward View Post
    Which version of the framework did you upgrade to? In milestone 3, there is a Job Key and a schedule date column. You can easily increment a string key the same way you did job run to create a new Job Instance. In Milestone 4, a new object, JobParameters, has been introduced. This allows for much more flexibility by letting you set your own parameters (jobParametersBuilder.addString().addLong())
    We did not upgrade yet, i downloaded the latest sources to see how much the framework has changed and how much effort an upgrade would take for our project. I was indeed planning to use the parameters field for introducing the concept of Jobrun again. I just wanted to make sure this functionality had not been replaced by something else before spending the effort to do so.

  4. #4
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    You should definitely have no issues keeping JobRun as a JobParameter in M4. Take a look at the DefaultJobParametersFactory to see a possible way to do it with no modifications (i.e. job.run(long)=3) or you could create your own factory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •