Celery deployment

problem description

how do I deploy celery on the server?
Environment: celery 4.2.0 , django 2.0.8 , python3.6.5

< hr >

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 >
Sep.26,2021

if you have log, or post log, such a description should be difficult to find a solution.

if you guess, I guess your server cannot access the configured redis.


for the deployment of celery, please refer to the official document: ide/daemonizing.html" rel=" nofollow noreferrer "> Celery Daemonization . Put the official script celery startup script under / etc/init.d/ and create the celeryd configuration file under / etc/default/. The official document contains detailed instructions. Note that CELERY_BIN= "/ usr/local/bin/celery" needs to change to your own celery startup path, which is usually found in the bin directory in your virtual environment. For example, if your virtual environment is named venv, the path is "path_to_your_venv/bin/celery"

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3189f-e2f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3189f-e2f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?