Results 1 to 3 of 3

Thread: Question on restartability

  1. #1
    Join Date
    Jul 2009
    Location
    London, UK
    Posts
    47

    Default Question on restartability

    Hello,

    Does anyone know what the behaviour should be when a restartable job fails and the Job Launcher attempts to launch the job again?

    In my case, my Job fails and I can verify this since the:
    Code:
    <next on="FAILED" to="batchFailedStep" />
    step is executed, but when I try to restart the Job again, I get a JobInstanceAlreadyCompleteException.

    I don't specify any restartable property on the <job /> so I assume the default(true) is set? Any thought?

    Regards,
    - Savvas

  2. #2
    Join Date
    Dec 2005
    Location
    Lyon, France
    Posts
    311

    Default

    if a failed step goes next to a last step that succeeds (batchFailedStep in our case?), the whole batch execution is considered COMPLETED (thus the corresponding instance), so you can't start a new execution of the instance again.

  3. #3
    Join Date
    Jul 2009
    Location
    London, UK
    Posts
    47

    Default

    Hi Arnaud,

    It all makes sense now..I changed:
    Code:
    <next on="FAILED" to="batchFailedStep" />
    to:
    Code:
    <end on="FAILED" />
    and it works as expected.

    Thanks very much,
    - Savvas

Posting Permissions

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