3 ms·
This was an awesome comment. I've been trying to figure this out but haven't known what I was looking for. Thanks for the advice.
by ellius 9y ago
This was an awesome comment. I've been trying to figure this out but haven't known what I was looking for. Thanks for the advice.
- IgorPartola 9y agoJust so you know, this isn't the only way to do this. You can use external systems for locks as well. Redis is a good candidate: http://loose-bits.com/2010/10/distributed-task-locking-in-celery.html http://loose-bits.com/2010/10/distributed-task-locking-in-ce...
- skyde 9y agoI woulds strongly advise against using Redis for lock. Maybe something with a real consensus algorithm like ETCD or Zookeeper but otherwise it's better to keep the lock inside the RDBMS.