2👍
You can use either attach-daemon
or smart-attach-daemon
. But if you are using smart-attach-daemon then you should also start celery with pid file and set path to it in uwsgi:
smart-attach-daemon = ${path}/${name_project}/var/celery-worker.pid ${path}/${name_project}/.env/bin/python ${path}/manage.py celery -A test worker --pidfile=${path}/${name_project}/var/celery-worker.pid -l info -B
- [Django]-Django: paginating differently on the first page
- [Django]-Django get first part of a string
- [Django]-Django ORM. Filter many to many with AND clause
Source:stackexchange.com