Browse Source

Polish "Add a Restarting a stopped or failed Job section to the batch howto"

See gh-38326
3.0.x
Moritz Halbritter 2 years ago
parent
commit
ba998302bd
  1. 10
      spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/batch.adoc

10
spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/batch.adoc

@ -53,12 +53,18 @@ Consider the following command: @@ -53,12 +53,18 @@ Consider the following command:
This provides only one argument to the batch job: `someParameter=someValue`.
[[howto.batch.restarting-a-failed-job]]
=== Restarting a stopped or failed Job
In order to restart a failed `Job`, all parameters (identifying and non-identifying) have to be re-specified on the command line. Non-identifying parameters are *not* copied from the previous execution. This allows them to be modified or removed.
To restart a failed `Job`, all parameters (identifying and non-identifying) must be re-specified on the command line.
Non-identifying parameters are *not* copied from the previous execution.
This allows them to be modified or removed.
NOTE: When you're using a custom `JobParametersIncrementer`, you have to gather all parameters managed by the incrementer to restart a failed execution.
NOTE: When using a custom `JobParametersIncrementer`: Be prepared to gather all parameters managed by the incrementer in order to restart a failed execution.
[[howto.batch.storing-job-repository]]
=== Storing the Job Repository

Loading…
Cancel
Save