Skip to content

Instantly share code, notes, and snippets.

@mapopa
Created October 31, 2012 09:40
Show Gist options
  • Save mapopa/3986114 to your computer and use it in GitHub Desktop.
Save mapopa/3986114 to your computer and use it in GitHub Desktop.
django celery
cat /etc/default/celeryd
# Name of nodes to start
# here we have a single node
CELERYD_NODES="w1"
# Where to chdir at start.
CELERYD_CHDIR="/home/mariuz/test"
# How to call "manage.py celeryd_multi"
CELERYD_MULTI="$CELERYD_CHDIR/manage.py celeryd_multi"
# How to call "manage.py celeryctl"
CELERYCTL="$CELERYD_CHDIR/manage.py celeryctl"
# Extra arguments to celeryd
CELERYD_OPTS="--time-limit=1000"
# Name of the celery config module.
CELERY_CONFIG_MODULE="celeryconfig"
# %n will be replaced with the nodename.
CELERYD_LOG_FILE="/var/log/celery/%n.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"
# Workers should run as an unprivileged user.
CELERYD_USER="mariuz"
CELERYD_GROUP="mariuz"
# Name of the projects settings module.
export DJANGO_SETTINGS_MODULE="settings"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment