Hello Aaron,
welcome on the mailing list.
I think I understand what's wrong. I should hopefully have a fix very soon, your incr() suggestion helps a lot.
Thanks for the feedback so far,
--
John Mettraux - http://jmettraux.wordpress.com
It's taking me a bit more time, totally re-considering this ruote-redis storage implementation.
Sorry for the delay,
When I have a decent re-implementation that passes all my tests, I'll
ask for you "greenlighting" it.
Maybe I'll have to change the way it stores data, if so, I'll make
sure to warn you about it.
BTW, in what kind of context / what kind of processes do you intend to
run with ruote ? I've seen you're connected with the Thoughtworks
guys.
Best regards,
BTW, which version of Redis are you using ?
I'm considering upgrading from 1.2.6 to 2.0 in order to get blpop and co.
Finally, I'm sticking with 1.2.6 and only using setnx but for a classical locking mecha :
http://github.com/jmettraux/ruote-redis/commit/468a3a89f02149c09a0a9634ceedac32b678fc32
Please tell me how it works for you (engine startup issue).
I still have to implement lock expiration, I only did the preliminary work (storing the timestamp as the lock value).
I will go on tomorrow, cheers,