Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources as a queue, not discarding #13

Open
brauliobo opened this issue Dec 19, 2020 · 2 comments
Open

Resources as a queue, not discarding #13

brauliobo opened this issue Dec 19, 2020 · 2 comments

Comments

@brauliobo
Copy link

brauliobo commented Dec 19, 2020

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?

@doits
Copy link
Contributor

doits commented Jan 7, 2021

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)

@ghost
Copy link

ghost commented Jun 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants