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 sec
You can use a semaphore. When the semaphore is taken, abandon the 2nd job and wait until the next fire time.