Skip to content

Commit

Permalink
Merge pull request #38326 from cachescrubber
Browse files Browse the repository at this point in the history
* pr/38326:
  Polish "Add a Restarting a stopped or failed Job section to the batch howto"
  Add a Restarting a stopped or failed Job section to the batch howto

Closes gh-38326
  • Loading branch information
mhalbritter committed Nov 13, 2023
2 parents 3406391 + ba99830 commit a33d8f2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ This provides only one argument to the batch job: `someParameter=someValue`.



[[howto.batch.restarting-a-failed-job]]
=== Restarting a stopped or failed Job

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.



[[howto.batch.storing-job-repository]]
=== Storing the Job Repository
Spring Batch requires a data store for the `Job` repository.
Expand Down

0 comments on commit a33d8f2

Please sign in to comment.