How to set to a QUARTZ JOB to start only when an another JOB finished, stopped?
问题 I have a QUARTZ JOB which is starts every 10 minutes. If a JOB doesn't finish in 10 minutes, in the next 10th minute another JOB will start. What I want is: the next JOB (after every 10 minute) should start only, if the previous JOB has finished running. Is there any way to do it? 回答1: Quartz Documentation @DisallowConcurrentExecution is an annotation that can be added to the Job class that tells Quartz not to execute multiple instances of a given job definition (that refers to the given job