Answer the question
In order to leave comments, you need to log in
How to make shared data in Celery?
There is data that is "cached" in a dict in django applications. How to run several workers, so that everyone does not make their own copy of these caches, and everyone uses the same one?
I start in the standard way. But in current cases, the application and each worker has its own copy.
celery --app=config worker -B --loglevel=info
Answer the question
In order to leave comments, you need to log in
No way. Celery tasks run as separate processes, and each process has its own address space.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question