Skip to content

Instantly share code, notes, and snippets.

@Novarg
Created October 28, 2013 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Novarg/7199701 to your computer and use it in GitHub Desktop.
Save Novarg/7199701 to your computer and use it in GitHub Desktop.
# 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