2

Is there any way to make a job stop and resume from the same point in Spring Batch? (Dynamically not statically)

Maybe launching a new job that would stop the current one? Has anybody ever done something similar?

Rollerball
  • 12,618
  • 23
  • 92
  • 161

1 Answers1

3

Should be a matter of calling JobExecution::stop() and then re-run it with the same set of parameters. See this gist.

Artefacto
  • 96,375
  • 17
  • 202
  • 225