Search code examples
javaquartz-scheduler

How to queue misfired jobs in Quartz?


Is there a way to queue thousands of misfired jobs in quartz scheduler?

I want to avoid having all misfired jobs to fire all at once.

We're using quartz 2.2.1.


Solution

  • Just limit the amount of concurrently executable jobs.

    For example set the property org.quartz.threadPool.threadCount to 10 will cause that only 10 jobs could be executed in parallel. I.e. other jobs will be queued (depending on your MisfireInstructions).