title: elastic beanstalk cron run twice
body: <p>I have one application on elastic beanstalk and cron jobs for it.</p>
  
  <p>The code of setting cron is</p>
  
  <pre><code>container_commands:
    01_some_cron_job:
      command: "echo '*/5 * * * * wget -O - -q -t 1 http://site.com/cronscript/' | crontab"
    leader_only: true
  </code></pre>
  
  <p>This script calls the mail sender. And I'm receive two message per time.</p>
  
  <p>code of   <code>http://site.com/cronscript/</code> looks like (php code)</p>
  
  <pre><code>require_once('ses.php');
  $ses = new SimpleEmailService(EMAIL_SHORTKEY, EMAIL_LONGKEY);
  $m = new SimpleEmailServiceMessage();
  $m-&gt;addTo('user@domain.com');
  $m-&gt;setFrom('response_service@domain.com');
  $m-&gt;setSubject('test message');
  $m-&gt;setMessageFromString('', 'message content');
  $send_emails=($ses-&gt;sendEmail($m));
  </code></pre>
  
  <p>When I call <code>http://site.com/cronscript/</code> from browser's address bar, I receive one message as I want.</p>