0
0

More than 3 years have passed since last update.

Spring-Batchのテストでハマった

Last updated at Posted at 2019-12-19

Spring-Batchのテストでハマった

ハマった内容

  • あるバッチにパラメーターを与えて実行する
  • 1回目は成功するのだが、2回目以降は実行できない

ハマりの原因

Going by the concept of Job Instances and Job Executions in Spring Batch, 
you can't start a COMPLETED job instance again 
though you can launch same instance of job again & 
again till its not COMPLETE ( and few more job statuses ).

Job instance uniqueness is achieved by jobId & job parameters
  • 別のエラーメッセージが表示されるためにこの話までたどり着くのに時間がかかった
  • なんだこのクソゴミ機能は… 素晴らしい機能ですね
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0