Spring batch :Restart a job and then start next job automatically

前端 未结 3 462
时光说笑
时光说笑 2020-12-21 01:12

I need to create a recovery pattern. In my pattern I can launch a job only on a given time window. In case the job fails, it will only be restarted on the next time window a

3条回答
  •  北海茫月
    2020-12-21 02:06

    Is it possible to do it in the opposite manner?

    In every time window, submit the job intended for that time window.

    However, the very first step of the job should check whether the job in previous time window is completed successfully or not. If it failed before, then submit the previous job, and wait for completion, before going into its own logic.

提交回复
热议问题