From ba998302bda397d591a3a19ba7cb3419bdae084d Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Mon, 13 Nov 2023 12:07:16 +0100 Subject: [PATCH] Polish "Add a Restarting a stopped or failed Job section to the batch howto" See gh-38326 --- .../src/docs/asciidoc/howto/batch.adoc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/batch.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/batch.adoc index 324c3199de09..3322bf3cfc3b 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/batch.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/batch.adoc @@ -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