suo
suo copied to clipboard
Resources as a queue, not discarding
I'm trying this as a replacement to https://github.com/dv/redis-semaphore
The issue is that with Suo the resources option works by discarding execution, instead of queueing execution.
Can Suo work with queueing blocks mandated by resources?
I think it should work with a long acquisition_timeout so it will wait for that time? You probably should amend acquisition_delay then, too, or else it might try to acquire the lock too often (about once every 0.01 seconds by default)
Any news here? I'm trying to replicate the redis-semaphore behavior as well but, out of the blu the suo gem stoped retying acquiring the process.