I have a @Scheduled annotation and inside i'm calling a batch task, like:
JobExecution execution = jobLauncher.run(job, param);
So, my scheduler is setup initialDelay = 5000
, fixedDelay=5000
.
The problem is that, after 5000 miliseconds, the schedule is running again before the first ending. Is overloading.
Exist some way to make it wait to execute again before the first finished ?
thanks.