How to prevent concurrent execution of a job in Grails?

后端 未结 4 1193
长情又很酷
长情又很酷 2021-02-19 05:12

I have a quartz job in grails, that needs to be executed in every 5s, but I need this sequentially. In some situations the execution of the job exceeds this 5s, in this case I d

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 05:58

    Make your job class implement StatefulJob instead of Job

提交回复
热议问题