title: How do you run a worker with AWS Elastic Beanstalk?
body: <p>I am launching a Django application on AWS Elastic Beanstalk. I'd like to run a background task or worker in order to run celery.</p>
  <p>I can not find if it is possible or not. If yes how could it be achieved?</p>
  <p>Here is what I am doing right now, but this is producing an event type error every time.</p>
  <pre><code>container_commands:
    01_syncdb:
      command: &quot;django-admin.py syncdb --noinput&quot;
      leader_only: true
    50_sqs_email:
      command: &quot;./manage.py celery worker --loglevel=info&quot;
      leader_only: true
  </code></pre>