| 1 |
# Edit the options in this file to match your projects environment. |
| 2 |
# See https://docs.celeryq.dev/en/stable/userguide/daemonizing.html for the complete |
| 3 |
# documentation on the options. |
| 4 |
|
| 5 |
# WARNING: This script is only designed to run the worker(s) for a single |
| 6 |
# project. If you need to start workers for multiple projects you should |
| 7 |
# consider using supervisor. |
| 8 |
# Examples can be found in /usr/share/doc/python-celery/supervisord/ |
| 9 |
|
| 10 |
# Change this to true when done to enable the init.d script. |
| 11 |
# Default: false |
| 12 |
ENABLED="false" |
| 13 |
|
| 14 |
# Name of nodes to start |
| 15 |
# here we have a single node |
| 16 |
CELERYD_NODES="w1" |
| 17 |
# or we could have three nodes: |
| 18 |
#CELERYD_NODES="w1 w2 w3" |
| 19 |
|
| 20 |
# Where to chdir at start. |
| 21 |
CELERYD_CHDIR="/opt/Myproject/" |
| 22 |
|
| 23 |
# Extra arguments to celeryd |
| 24 |
CELERYD_OPTS="--time-limit=300 --concurrency=8" |
| 25 |
|
| 26 |
# Name of the celery config module. |
| 27 |
CELERY_CONFIG_MODULE="celeryconfig" |
| 28 |
|
| 29 |
# %n will be replaced with the nodename. |
| 30 |
CELERYD_LOG_FILE="/var/log/celery/%n.log" |
| 31 |
|
| 32 |
# Workers should run as an unprivileged user. |
| 33 |
CELERYD_USER="celery" |
| 34 |
CELERYD_GROUP="celery" |