problem description
how do I deploy celery on the server?
Environment: celery 4.2.0
, django 2.0.8
, python3.6.5
the environmental background of the problem and the method of trying
recently developed a small project that requires celery
(both worker and broker are redis
). Debugging locally is fine, but there is trouble deploying to the server. According to the documentation, as well as the official tutorial, try the following method:
</span>
workerReceived task<br>config:
(env) [deploy-tester@SJDev001 django]$ cat /etc/default/celeryd
CELERYD_NODES="worker1"
CELERY_BIN="/home/deploy-tester/invitation_system/django/env/bin/celery"
CELERY_APP="invitation"
CELERYD_OPTS="--time-limit=300 --concurrency=8"
CELERYD_LOG_FILE="/home/deploy-tester/log/celery/%n%I.log"
CELERYD_PID_FILE="/home/deploy-tester/run/celery/%n.pid"
CELERYD_USER="deploy-tester"
CELERYD_GROUP="deploy-tester"
CELERY_CREATE_DIRS=1
export INVITATION_DB_NAME="invitation"
export INVITATION_DB_USER=""
export INVITATION_DB_PASSWD=""
< H2 >
I NEED help! Tmurt < / H2 >