title: Running scheduled tasks in multiple server instances at same time in spring boot
body: <p>We have a spring boot application and scheduled tasks.</p>
  <p>We want to deploy our application on multiple servers , so multiple instances of applications.</p>
  <p>How to configure spring to run scheduled tasks on multiple instances run at same time?</p>
  <p>For eg : An application deployed in 1st server instance at 12am and task running scheduled at 12am.
  The same application deployed in 2nd server instance at 12.03 am and since there is a difference in deployment task is also started at 12.03am with same cron expression ,and third one at deployed at 12.05am at task starting at 12.05am.</p>
  <p>How to make tasks run at same time (all three tasks running in multiple instances need to run at same time 12.05am) ,so we get same results for all three tasks .</p>