using spring batch to execute jobs in parallel

前端 未结 1 1089
长发绾君心
长发绾君心 2020-12-18 11:42

I have a use case as follows:

1)There is a Parentjob which has multiple child jobs.
2)All child jobs should be executed in parallel.
3)The parent job should          


        
相关标签:
1条回答
  • 2020-12-18 12:45

    Maybe something like that?

    1. Create job
    2. Add chunk tasklet to this job.
      1. Reader get new job
      2. Processor start it
    3. Run this chunk with task executor and thread pool with 10 threads.
    4. Profit! :)
    0 讨论(0)
提交回复
热议问题