This HOWTO is based on instructions provided at celeryd systemd configure and celery in daemon
In my previous HOWTO, we’ve configured celery and are able to run it using celery -A proj worker -l info
manually. But in many case, you’d want to run it as daemon. Now let’s start to work.
NOTE:
I’m using another project in this article, please make changes accordingly.
Create a configuration file for celery daemon
My configuration file is /NewHorizons/celery.conf
CELERY_APP="NewHorizons"
# Name of nodes to start, here we have a single node
CELERYD_NODES="w1"
# Where to chdir at start.
CELERYD_CHDIR="/NewHorizons"
# Python interpreter from environment, if using virtualenv
ENV_PYTHON&