Evil Anya
How to run my django app and celery simultaneously?
can this method work with multiple workers? Suppose I have 4 celery workers, one way is to set 1 worker and concurrency=4.
Another way is to literally run the line 4 times with 4 different queue name.
For the 2nd case, does that mean I should run 4 separate service for each worker?
What would the overhead in memory cost be with this method?
7 replies
How to setup celery worker in django+redis project?
I solved my problem.
So I created a duplicate service, linking to the same github repo, same root path.
In settings, custom start command, I added
celery -A dj_project worker -l INFO -Q queue1
In entrypoint.sh used by dockerfile, I added a condition
5 replies