ost icon indicating copy to clipboard operation
ost copied to clipboard

queue behavior

Open chebyte opened this issue 9 years ago • 2 comments

@soveran thanks for this gem, is very useful for us!, I just added a fews methods for queue behavior without looping, is you think this is necessary, please add this changes

thanks!

chebyte avatar Mar 06 '15 20:03 chebyte

Hey @chebyte, thanks for the patch and for the kind words! Can you tell me more about the use case for this change? The reason why I ask is because BRPOPLPUSH provides some guarantees so that if something goes wrong with the worker, the item is kept in a backup queue. Tell me more about how you plan to use it.

soveran avatar Mar 06 '15 21:03 soveran

We use this methods so we can use OST like a queue instead a loop. We could have use only Redis, but we are already are using OST for several reasons, so we went that way. We aren't sure that this changes mean a great change on the gem, but in the spirit of open source, we would like to share. Please feel free to close this PR if you feel like.

thanks!

chebyte avatar Mar 06 '15 21:03 chebyte