lundi 15 avril 2019

Is it possible to schedule a job with Spring @Scheduled annotation to run every hour but each time at random hour?

I would like to run my task/method each hour.. but each time at random minute. I've already tried Spring @Scheduled to be started every day at a random minute between 4:00AM and 4:30AM but this solution is setting random initial value but after that same minute is used.

I would like to achieve a situation where the job is running like this. ex:

8:10 9:41 10:12 ...




Aucun commentaire:

Enregistrer un commentaire