使用spring批处理并行执行作业

我有一个用例如下:

1)There is a Parentjob which has multiple child jobs. 2)All child jobs should be executed in parallel. 3)The parent job should wait until all child jobs are done. 4)One child jobs are done control returns to master 5)Master job is completed. 6)In case any of the child job throws exception then also control should return to master job 

这可能是使用弹簧批次吗?

编辑:我不打算在parellel执行多个作业步骤。并行同一父项的多个子作业

也许是这样的?

  1. 创造工作
  2. 将chunk tasklet添加到此作业。
    1. 读者获得新工作
    2. 处理器启动它
  3. 使用任务执行程序和具有10个线程的线程池运行此块。
  4. 利润! 🙂