suo icon indicating copy to clipboard operation
suo copied to clipboard

Resources as a queue, not discarding

Open brauliobo opened this issue 5 years ago • 2 comments

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?

brauliobo avatar Dec 19 '20 18:12 brauliobo

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)

doits avatar Jan 07 '21 11:01 doits

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.

ghost avatar Jun 04 '21 19:06 ghost