title: Spring cron job working in local but not in amazon instance
body: <p>I have developed a spring boot project. 
  It uses <code>@EnableScheduling</code> and <code>@Scheduled</code> annotations to schedule task. I have tried both ways to schedule my function. </p>
  
  <p>1)</p>
  
  <pre><code>@Scheduled(initialDelayString = "${scheduler.initialDelay}", fixedDelayString = "${scheduler.fixedDelay}")
  </code></pre>
  
  <p>2) </p>
  
  <pre><code>@Scheduled(cron = "0 0 1 * * *")
  </code></pre>
  
  <p>In both ways when I run my code locally, It gets run perfectly fine. But when I deploy my code to AWS instance using auto scaling group, spring application gets start, but after that nothing is happening. I don't even see any logs or error about scheduler. Application is running but scheduler is not getting invoked. 
  It seems very strange to me. And since its working perfectly very well in local, it is difficult to debug also.</p>