Bugzilla – Full Text Bug Listing
|Summary:||Clarification of JobExecution|
Description mminella 2012-11-09 19:01:49 UTC
In section 4.1.3, the spec discusses the concept of a JobExecution and the concepts of an execution being "complete". However, it does not discuss what should occur if the JobExecution that is "complete" is attempted to be restarted (Spring batch does not allow this behavior).
Comment 1 cvignola 2012-11-17 19:49:35 UTC
The spec does not allow restart of a completed execution, either, but that fact is well hidden. You see the evidence on the JobOperator.restart() method in that it throws JobInstanceAlreadyCompleteException Long restart(long instanceId, Properties jobParameters) throws JobInstanceAlreadyCompleteException, NoSuchJobExecutionException, NoSuchJobException, JobRestartException; I added the following statement to 4.1.3: Note a completed JobExecution cannot be restarted.