Search code examples
javaquartz-scheduler

Do Quartz triggers "pile up" when you set concurrent to false


I have a Quartz trigger that is set to execute a process every minute.

Since concurrent is set to false, if the process takes longer than a minute, future triggers are prevented. However, does this mean that the trigger that attempted to run is now "standing in line" and waiting to be executed?

For example, if the process takes 10 minutes to execute, will there be 10 triggers sitting there waiting to execute. I am attempting to prevent a buildup on the server.


Solution

  • No. If concurrency is set to false (with anottation @DisallowConcurrentExecution) further jobs won't start if actual is still running.

    See Job State and Concurrency in docu.