celeryd.sysconfig 707 B

12345678910111213141516171819202122
  1. # In CentOS, contents should be placed in the file /etc/sysconfig/celeryd
  2. # Name of nodes to start (space-separated)
  3. CELERYD_NODES="my_application-node_1"
  4. # Where to chdir at start. This could be the root of a virtualenv.
  5. CELERYD_CHDIR="/path/to/my_application"
  6. # How to call celeryd-multi
  7. CELERYD_MULTI="$CELERYD_CHDIR/bin/celeryd-multi"
  8. # Extra arguments
  9. CELERYD_OPTS="--app=my_application.path.to.worker --time-limit=300 --concurrency=8 --loglevel=DEBUG"
  10. # %n will be replaced with the nodename
  11. CELERY_CREATE_DIRS=1
  12. CELERYD_LOG_FILE="/path/to/my_application/log/%n.log"
  13. CELERYD_PID_FILE="/var/run/celery/%n.pid"
  14. # Workers should run as an unprivileged user
  15. CELERYD_USER=celery
  16. CELERYD_GROUP=celery