Answer the question
In order to leave comments, you need to log in
Should I install celery inside venv?
It is supposed to keep several Django projects on one server. With a high degree of probability that celery will be used in all.
How to install celery, inside a virtual environment or one for the entire server?
If installed inside venv then how to set CELERY_APP for multiple projects?
And if you install it on the entire server, then how to use it inside the venv created with --no-site-packages?
Thanks to everyone who responded!!!
At the moment I'm testing on a local server, running celery as a daemon. Installed in a virtual environment.
Here is the /etc/default/celeryd configuration:
CELERYD_NODES="worker1"
CELERY_BIN="/opt/project/venv/bin/celery"
CELERY_APP="psm"
CELERYD_CHDIR="/opt/project/psm"
CELERYD_OPTS="--time-limit=300 --concurrency=8"
CELERYD_LOG_FILE="/opt/project/log/celery/%N.log"
CELERYD_PID_FILE="/var/tmp/%N.pid"
CELERYD_USER="dmitriy"
CELERYD_GROUP="dmitriy"
CELERY_CREATE_DIRS=1
Answer the question
In order to leave comments, you need to log in
you are confusing the purpose of virtualenv
, decide:
either you are sure that the dependencies of different projects will never conflict and therefore DO NOT use virtualenv,
or - you are not sure - and use
virtualenv - this is not a VPS, it does not have any resource sharing
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question