Wednesday 15 September 2010

django - Can Celery run on Elastic Beanstalk? -



django - Can Celery run on Elastic Beanstalk? -

i'm looking straight-forward way run celery on elastic beanstalk environment. exist, or need utilize sqs instead?

i have tried putting line in the .config file without results. .config file:

container_commands: 01_syncdb: command: "django-admin.py syncdb --noinput" leader_only: true 02_collectstatic: command: "./manage.py collectstatic --noinput" 03_migrate: command: "./manage.py migrate --noinput" 04_start_celery: command: "./manage.py celery worker &"

when ssh ec2 server , run ps -ef | grep celery shows celery isn't running.

any help appreciated. thanks!

celery doesn't show because container commands run prior reboot of webserver during deployment. basically, celery workers wiped out after machine restarts.

i suggest starting celery using post deployment hooks.

see http://junkheap.net/blog/2013/05/20/elastic-beanstalk-post-deployment-scripts/ , how run worker aws elastic beanstalk?

django amazon-web-services celery elastic-beanstalk amazon-elasticache

No comments:

Post a Comment