-
Oct 5th, 2012, 11:00 AM
#1
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?
-
Oct 5th, 2012, 02:41 PM
#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?
-
Oct 7th, 2012, 02:52 AM
#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.
-
Oct 10th, 2012, 09:05 AM
#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.
-
Oct 13th, 2012, 12:10 AM
#5
Ok Thanks,
Hope there would be support for this requirement in future releases of Spring Batch.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules