小编ypr*_*rez的帖子

Celery with Upstart - processes are dying unexpectedly

When I'm running Celery with Upstart, after a while, the child processes or the main processes die without any trace.

The Upstart script I'm using (/etc/init/celery):

description "celery"

start on runlevel [2345]
stop on runlevel [!2345]

kill timeout 20
# console log
setuid ***
setgid ***

script
chdir /opt/***/project/
exec /opt/***/virtualenvs/***/bin/python manage.py celery worker --settings=settings.staging -B -c 4 -l DEBUG
end script

respawn
Run Code Online (Sandbox Code Playgroud)

When running exectly the same command without upstart (manually running the exec part), everything works …

ubuntu django upstart celery

2
推荐指数
2
解决办法
3009
查看次数

标签 统计

celery ×1

django ×1

ubuntu ×1

upstart ×1