Count of parallel instances that are running
Posted: Tue Nov 01, 2011 8:11 am
Hello,
We have to write a multi-instance job that should be triggered based on a run-time parameter. So if at run time we want the job to run for 2 subscribers, it should be triggered 2 times parallely, however if this count it more than 5, then we want to queue up the jobs.
So the first 5 jobs should be triggered simultaneously, but the 6th one should start only after one of the currently running jobs have completed. So on and so forth..
I read through the forum and figured that we can probably achieve this by putting a nested condition and counting the number of instances of the job that are currently executing.
Can someone please help me with how can i get the number of instances that are currently executing of a particular job?
Your help is much appreciated!
We have to write a multi-instance job that should be triggered based on a run-time parameter. So if at run time we want the job to run for 2 subscribers, it should be triggered 2 times parallely, however if this count it more than 5, then we want to queue up the jobs.
So the first 5 jobs should be triggered simultaneously, but the 6th one should start only after one of the currently running jobs have completed. So on and so forth..
I read through the forum and figured that we can probably achieve this by putting a nested condition and counting the number of instances of the job that are currently executing.
Can someone please help me with how can i get the number of instances that are currently executing of a particular job?
Your help is much appreciated!