Announcement Announcement Module
Collapse
No announcement yet.
how to set the jobs to be run in sequential or parallel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to set the jobs to be run in sequential or parallel

    Is there any configuration in the Spring batch that allows the Jobs assigned to the spring batch to run either in parallel or in sequential as per the input value?

  • #2
    This is a tricky question. While, technically, you can create a batch job that launches sub jobs and they can be in parallel, typically the orchestration of job execution (what jobs are run with what parameters and when) is handled externally to the job (a scheduler, script, etc).

    What is the specific use case you are looking to satisfy?

    Comment


    • #3
      use case is as such..
      I need to maintain a sequence in the job processing..
      at at times i have to execute two jobs that can be executed parallel... here the data for both the jobs is different..
      where as few times i have to execute two jobs in a sequential way here the data to use by both jobs is same.

      Comment


      • #4
        I'd recommend this type of orchestration be done outside of the batch jobs themselves and use parameters to the jobs to indicate what data to use.

        Comment


        • #5
          Ok Thanks,

          Hope there would be support for this requirement in future releases of Spring Batch.

          Comment

          Working...
          X