Difference between Batch Status and Exit Status in Spring Batch
1 Answer
From the Spring Batch documentation:
A BatchStatus object that indicates the status of the execution. While running, it's BatchStatus.STARTED, if it fails, it's BatchStatus.FAILED, and if it finishes successfully, it's BatchStatus.COMPLETED
The ExitStatus indicating the result of the run. It is most important because it contains an exit code that will be returned to the caller.
For more on the difference, see the section 5.3.2.1. Batch Status vs. Exit Status. You will find the explanation is quite good.
-
But I have some Steps that have a status of "STARTING" but they got messed up or something and have a exit_code of "EXECUTING" - what exactly causes this and I'm assuming its safe to say this is basically a failure? Jul 6, 2021 at 6:09
-