Open thelinuxlich opened 9 years ago
That does sounds like a very interesting and useful piece of information.
I think it might be a bit too complex to fit it into the cookbook. It should probably be its own article? @chipotle what do you think? We could also do this as a blog post, maybe in addition to a page in the docs (@segphault thoughts?).
I think this is the NoBrainer implementation btw. https://github.com/nviennot/nobrainer/blob/master/lib/no_brainer/lock.rb ?
Something similar to what @nviennot is doing on NoBrainer to guarantee uniqueness(using a dedicated table to manage the locks) would be nice for people who need this kind of stuff