Announcement Announcement Module
Collapse
No announcement yet.
Restarting a failed job Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restarting a failed job

    I have a Job defination with restartable="true"
    The job failed (not sure about the reason but the status="failed")
    When i try to start the job again using
    jobOperator.start(jobName, oldParams);

    it gives JobInstanceAlreadyExistsException:

  • #2
    Check the API for JobOperator: http://static.springframework.org/sp...bOperator.html.

    start(): Start a new instance of a job with the parameters specified.
    restart(): Restart a failed or stopped JobExecution.

    Comment

    Working...
    X