Skip to content

Commit 4d21760

Browse files
committed
Merge branch '3.1.x'
Closes gh-38341
2 parents c663224 + 4a6762a commit 4d21760

File tree

1 file changed

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

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ This provides only one argument to the batch job: `someParameter=someValue`.
5555

5656

5757

58+
[[howto.batch.restarting-a-failed-job]]
59+
=== Restarting a stopped or failed Job
60+
61+
To restart a failed `Job`, all parameters (identifying and non-identifying) must be re-specified on the command line.
62+
Non-identifying parameters are *not* copied from the previous execution.
63+
This allows them to be modified or removed.
64+
65+
NOTE: When you're using a custom `JobParametersIncrementer`, you have to gather all parameters managed by the incrementer to restart a failed execution.
66+
67+
68+
5869
[[howto.batch.storing-job-repository]]
5970
=== Storing the Job Repository
6071
Spring Batch requires a data store for the `Job` repository.

0 commit comments

Comments
 (0)