Docker worker nodes access to Redis Cache

Hi, I have written a. python Django application in Docker environment. As part of my application I am writing json data to my Redis cache (multiple worker nodes writes) once the set buffer length is full i want to have only one worker node to process my data - but currently all my workers process this data and my logic fails.
Is there a suggestion on how I can control the worker nodes access to my redis cache.

Appreciate any quick help.