SocketIO emit from Asynchronous Celery worker is not working
You can run Celery in multiprocessing
or eventlet
mode.
By default, Celery uses multiprocessing
to set up a new process for a new worker. Eventlet
uses threads, which I believe is what you want to use in this scenario since you want shared memory.
You may find this documentation useful.