Created
June 15, 2012 16:46
Extracted from https://github.com/wallace/resque-lonely_job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extracted from https://github.com/wallace/resque-lonely_job/blob/master/lib/resque-lonely_job.rb#L12-L16 | |
# Overwrite this method to uniquely identify which mutex should be used | |
# for a resque worker. | |
def redis_key(*args) | |
"lonely_job:#{@queue}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment