Django - Redis distributed lock

Django 4.0.6
Django-redis 5.2.0

Is usage like this:

with caches["redis"].lock("bob:" + str(<some uuid>), ttl=900, timeout=300, retry_delay=15):
   dostuff

supposed to work on a ElastiCache cluster in cluster mode from k8s pods? Seems like I'm getting multiple instances getting into the locked area.

Back to Top