How to run spring batch jobs in parallel

后端 未结 1 503
广开言路
广开言路 2020-12-11 10:57

I have a job flow and I would like to run it as the following:

Job1 -> Job2 -> Job3  
     -> Job4 -> Job5

The job flow will be

相关标签:
1条回答
  • 2020-12-11 11:24

    Jobs can't naturally managed as you ask.
    You have to create a new super job and using a 'Split flow' configuration redirect job as you prefer.
    Of course split works for steps and not for jobs, but SB has the possibility to wrap a job into a step using a JobStep
    Follow official doc and examples about split around the net and you should be able to solve your problem without problem

    0 讨论(0)
提交回复
热议问题