Skip to content

Normalize args when deriving the redis lock key.#6

Open
dylanahsmith wants to merge 1 commit into
defunkt:masterfrom
dylanahsmith:normalize-args
Open

Normalize args when deriving the redis lock key.#6
dylanahsmith wants to merge 1 commit into
defunkt:masterfrom
dylanahsmith:normalize-args

Conversation

@dylanahsmith

Copy link
Copy Markdown

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

orlando commented Aug 23, 2012

Copy link
Copy Markdown

+1, i came across this today

@joshfrench

Copy link
Copy Markdown

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

@rockrep

rockrep commented Feb 22, 2013

Copy link
Copy Markdown

+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