@
neoblackcap # Names of nodes to start
# most will only start one node
CELERY_NODES="worker"
# but you can also start multiple and configure settings
# for each in CELERYD_OPTS (see 'celery multi --help' for example)
#CELERY_NODES="worker1 worker2 worker3"
# Absolute or relative path to the 'celery' command
CELERY_BIN="/usr/local/bin/celery"
# CELERY_BIN="/virtualenvs/def/bin/celery"
# App instance to use
# comment out this line if you don't use an app
CELERY_APP="app1"
# or fully qualified:
#CELERY_APP="proj.tasks:app"
# Where to chdir at start
CELERYD_CHDIR="/var/www/app1/"
# Extra command-line arguments to the worker
CELERY_OPTS="--time-limit=1800 --concurrency=8"
# %N will be replaced with the first pat of the nodename.
CELERYD_LOG_FILE="/var/log/celery/%N.log"
CELERYD_PID_FILE="/var/run/celery/%N.pid"
...
这样的话 app1 是完全正常的,但也只有 /var/www/app1/的任务被执行, log 里也只有 app1 的 log 啊
我现在的问题就是我还有一个 /var/www/app2/我该怎么弄 T_T