Ensure that Spring Quartz job execution doesn't overlap
问题 I have a Java program that executes from Spring Qquartz every 20 seconds. Sometimes it takes just few seconds to execute, but as data gets bigger I\'m sure it run for 20 seconds or more. How can I prevent Quartz from firing/triggering the job while one instance is still being executed? Firing 2 jobs performing same operations on a database would not be so good. Is there a way I can do some kind of synchronization? 回答1: If all you need to do is fire every 20 seconds, Quartz is serious overkill