title: Spring Scheduled Task running in clustered environment
body: <p>I am writing an application that has a cron job that executes every 60 seconds. The application is configured to scale when required onto multiple instances. I only want to execute the task on 1 instance every 60 seconds (On any node). Out of the box I can not find a solution to this and I am surprised it has not been asked multiple times before. I am using Spring 4.1.6.</p>
  
  <pre><code>    &lt;task:scheduled-tasks&gt;
          &lt;task:scheduled ref="beanName" method="execute" cron="0/60 * * * * *"/&gt;
      &lt;/task:scheduled-tasks&gt;
  </code></pre>