0
我嘗試爲芹菜創建守護進程。如何爲芹菜創建守護進程?
這是我Celeryd
# Name of nodes to start, here we have a single node
CELERYD_NODES="w1"
# or we could have three nodes:
#CELERYD_NODES="w1 w2 w3"
# Where to chdir at start.
CELERYD_CHDIR="/home/ubuntu/workspace/ward/www「
ENV_PYTHON=「/usr/bin/python3」
# How to call "manage.py celeryd_multi"
CELERYD_MULTI="python3 $CELERYD_CHDIR/manage.py celeryd_multi"
# How to call "manage.py celeryctl"
CELERYCTL="python3 $CELERYD_CHDIR/manage.py celeryctl"
# Extra arguments to celeryd
CELERYD_OPTS="--time-limit=300 --concurrency=2 --beat --events --loglevel=info"
# Name of the celery config module.
CELERY_CONFIG_MODULE="celeryconfig"
# %n will be replaced with the nodename.
CELERYD_LOG_FILE="/var/logs/celery/%n.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"
# Workers should run as an unprivileged user.
CELERYD_USER=「ubuntu」
CELERYD_GROUP=「ubuntu」
# Name of the projects settings module.
export DJANGO_SETTINGS_MODULE=「fb_archive.settings"
它沒有任何錯誤。 但我的django項目不能使用芹菜。
如果我運行這個代碼celery --app=fb_archive.celery:app worker -B --loglevel=INFO
,django項目可以使用芹菜。
它是什麼(網絡服務器/ django /芹菜)在日誌中寫入? – 1844144
@ 1844144,它沒有任何日誌。它是空白的。 – egaoneko
我們可以繼續在這裏聊天http://chat.stackoverflow.com/rooms/97075/chat-with-egaoneko – 1844144