
| Key: |
BATCH-181
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Critical
|
| Assignee: |
Unassigned
|
| Reporter: |
Andres Bernasconi
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
The DefaultJobExecutor sets the status to ExitStatus.FAILED when the run() method starts, but if the steps do not execute (i.e. they are all finished) then FAILED is returned, insted of FINISHED.
Notice that some other odd (or rather unexpected) behaviours also occur when an exception is thrown (no exit status is returned but rather an exception) or if the Job is Stopped (again, an exception is thrown).
I also can't check the status of a Job with the JobExecutorFacade so I can't really ask the status of the Job before executing.
Regards
Andres B.
|
|
Description
|
The DefaultJobExecutor sets the status to ExitStatus.FAILED when the run() method starts, but if the steps do not execute (i.e. they are all finished) then FAILED is returned, insted of FINISHED.
Notice that some other odd (or rather unexpected) behaviours also occur when an exception is thrown (no exit status is returned but rather an exception) or if the Job is Stopped (again, an exception is thrown).
I also can't check the status of a Job with the JobExecutorFacade so I can't really ask the status of the Job before executing.
Regards
Andres B. |
Show » |
|
BATCH-127. We could quickly fix by having the Repository throw an exception, but as in 127, this could perhaps be configurable. (Although if it was, I'm not sure whether restartable would serve any purpose anymore.)