Created
October 28, 2013 16:08
-
-
Save Novarg/7199701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In CentOS, contents should be placed in the file /etc/sysconfig/celeryd | |
VIRTUAL_ENV=/Users/novarg/work/python/mr-env | |
# Names of nodes to start (space-separated) | |
#CELERYD_NODES="w1 w2 w3 w4" | |
CELERYD_NODES="w1" | |
# Where to chdir at start. This could be the root of a virtualenv. | |
CELERYD_CHDIR="/Users/novarg/work/python/mr" | |
# How to call celeryd-multi | |
CELERYD_MULTI="$CELERYD_CHDIR/manage.py celeryd_multi" | |
# Extra arguments | |
#CELERYD_OPTS="--app=my_application.path.to.worker --time-limit=300 --concurrency=8 --loglevel=DEBUG" | |
CELERYD_OPTS="--time-limit=600 --concurrency=8 --loglevel=DEBUG --settings=webadmin.settings" | |
# Create log/pid dirs, if they don't already exist | |
CELERY_CREATE_DIRS=1 | |
# %n will be replaced with the nodename | |
CELERYD_LOG_FILE="/var/log/celery/%n.log" | |
CELERYD_PID_FILE="/var/run/celery/celeryd/%n.pid" | |
# Workers run as an unprivileged user | |
CELERYD_USER=novarg | |
CELERYD_GROUP=staff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment