Skip to content

Instantly share code, notes, and snippets.

@wallace
Created June 15, 2012 16:46
Show Gist options
  • Save wallace/2937514 to your computer and use it in GitHub Desktop.
Save wallace/2937514 to your computer and use it in GitHub Desktop.
# 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