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

Normalize args when deriving the redis lock key. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dylanahsmith
Copy link

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.

Otherwise the before_enqueue_lock will create a different redis key than
around_perform_lock deletes.
@orlando
Copy link

orlando commented Aug 23, 2012

+1, i came across this today

@joshfrench
Copy link

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

@rockrep
Copy link

rockrep commented Feb 22, 2013

+1

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

Successfully merging this pull request may close these issues.

4 participants