Skip to content

Instantly share code, notes, and snippets.

@wallace
Created June 15, 2012 16:46
# 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