This discussion is archived
0 Replies Latest reply: Aug 4, 2013 6:21 AM by odie_63 RSS

How to limit the number of parallel instances of a given event-based job?

odie_63 Guru
Currently Being Moderated

Hi,

 

DB version : 11.2.0.3

 

I'm using an event-based job with parallel_instances attribute set to true.

It works perfectly fine, messages are enqueued then dequeued and processed simultaneously by separate instances of the same job.

 

Now, I'd like to limit the number of parallel instances of this job running at the same time, say to an arbitrary number n.

 

What would be the best way to do that?

 

Maybe using a notification callback is a better option in this case?

 

Thanks in advance for any input.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points