resque-lock icon indicating copy to clipboard operation
resque-lock copied to clipboard

Normalize args when deriving the redis lock key.

Open dylanahsmith opened this issue 12 years ago • 3 comments

Otherwise, the before_enqueue_lock will create a different redis key than around_perform_lock deletes.

This can be tested by using a symbol in the arguments, which gets encoded as a string. A regression test was added to unsure this issue is handled.

dylanahsmith avatar Jun 30 '12 06:06 dylanahsmith

+1, i came across this today

orlando avatar Aug 23 '12 19:08 orlando

+1, locks with symbolized arguments are never deleted from Redis.

joshfrench avatar Feb 14 '13 22:02 joshfrench

+1

rockrep avatar Feb 22 '13 08:02 rockrep