title: Celery SQS + Duplication of tasks + SQS visibility timeout
body: <p>Most of my Celery tasks have ETA longer then maximal visibility timeout defined by Amazon SQS. </p>
  
  <p>Celery <a href="http://docs.celeryproject.org/en/latest/getting-started/brokers/sqs.html" rel="noreferrer">documentation</a> says:</p>
  
  <blockquote>
    <p>This causes problems with ETA/countdown/retry tasks where the time to
    execute exceeds the visibility timeout; in fact if that happens it
    will be executed again, and again in a loop.</p>
    
    <p>So you have to increase the visibility timeout to match the time of
    the longest ETA you’re planning to use.</p>
  </blockquote>
  
  <p>At the same time it also says that:</p>
  
  <blockquote>
    <p>The maximum visibility timeout supported by AWS as of this writing is
    12 hours (43200 seconds):</p>
  </blockquote>
  
  <p>What should I do to avoid multiple execution of tasks in my workers if I am using SQS?</p>