Ensure that Spring Quartz job execution doesn't overlap

后端 未结 7 1409
迷失自我
迷失自我 2020-11-28 23:12

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

7条回答
  •  青春惊慌失措
    2020-11-28 23:15

    put them in a queue

    Even if the time exceeds 20 second current job should be finished & then the next should be fetched from the queue.

    Or you can also increase time to some reasonable amount.

提交回复
热议问题