Java Quartz scheduled Job - disallow concurrent execution of Job

前端 未结 3 1928
醉梦人生
醉梦人生 2020-11-29 09:27

I am using a Quartz Job for executing specific tasks.

I am also scheduling its execution in my Main application class and what i am trying to accomplish is not to a

3条回答
  •  旧时难觅i
    2020-11-29 10:12

    Just use the @DisallowConcurrentExecution Annotation on top of the Job class.

    See this official example or this tutorial about concurrent job execution.

提交回复
热议问题