description     "CIRCLE mancelery for common jobs"

respawn
respawn limit 30 30

setgid cloud
setuid cloud

kill timeout 360
kill signal SIGTERM

script
    cd /home/cloud/circle/circle
    . /home/cloud/.virtualenvs/circle/bin/activate
    . /home/cloud/.virtualenvs/circle/bin/postactivate
    ./manage.py celery -f --app=manager.mancelery purge
    exec ./manage.py celery --app=manager.mancelery worker --autoreload --loglevel=info --hostname=mancelery -B -c 3
end script