@Scheduled(fixedDelay = 5000) public void myJob() { Thread.sleep(12000); }
How can I prevent this spring job from running if the previous routine is not yet finished?
With fixedDelay, the period is measured after the completion of job, so no worries.
fixedDelay
1.4m articles
1.4m replys
5 comments
57.0k users