Skip to content

Commit 00ce9aa

Browse files
cachescrubbermhalbritter
authored andcommitted
Add a Restarting a stopped or failed Job section to the batch howto
See gh-38326
1 parent 3406391 commit 00ce9aa

File tree

1 file changed

+5
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ Consider the following command:
5353

5454
This provides only one argument to the batch job: `someParameter=someValue`.
5555

56+
[[howto.batch.restarting-a-failed-job]]
57+
=== Restarting a stopped or failed Job
5658

59+
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.
60+
61+
NOTE: When using a custom `JobParametersIncrementer`: Be prepared to gather all parameters managed by the incrementer in order to restart a failed execution.
5762

5863
[[howto.batch.storing-job-repository]]
5964
=== Storing the Job Repository

0 commit comments

Comments
 (0)