Results 1 to 5 of 5

Thread: resumption of step

  1. #1
    Join Date
    May 2008
    Posts
    19

    Default resumption of step

    Good morning,

    for the way resumption of step I tried to make a case that I have two steps on the first pass with success (Completed) and the second with failure (FAILED), but when I made the second execution of job he relaunched the first step even if it has happened in the first execution

    thank you in advance

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

    Default

    There could be two causes of this scenario:

    1) You have 'allowStartIfComplete' set to true, in which case starting the first step again is expected behaviour.

    2) You have used different JobParameters between the two runs, so it sees them as separate job instances and starts from the beginning. If you want to restart an instance, make sure the parameters are exactly the same between the two runs.

  3. #3
    Join Date
    May 2008
    Posts
    19

    Default tanks

    it seem that i am in the second case

    but if i use the same parametre i get this error :

    Code:
    16:50:01,457 ERROR DefaultQuartzScheduler_Worker-2 JobLauncherDetails:77 - Could not execute job.
    org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException: A job instance already exists and is complete for parameters={dateJ=2008-05-19 09:01:51}{}{}{}.  If you want to run this job again, change the parameters.
    	at org.springframework.batch.core.repository.support.SimpleJobRepository.createJobExecution(SimpleJobRepository.java:171)

  4. #4
    Join Date
    May 2008
    Posts
    19

    Default

    there is no solution for this ????

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

    Default

    It would appear that your first run was successful, which is the only case in which that exception will be thrown. Perhaps you didn't clear the meta-data before running it with those parameters?

    Please keep in mind that this is a public forum and questions may not be answered immediately, or even in the same day. Myself and the other committers try our best to be as responsive as possible, but we all have client commitments as well as our work on coding enhancements for the latest release.

Posting Permissions

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