Skip to content

Instantly share code, notes, and snippets.

@shio-phys
Created October 19, 2015 07:08
Show Gist options
  • Save shio-phys/ef9ceb9c865e135efdbf to your computer and use it in GitHub Desktop.
Save shio-phys/ef9ceb9c865e135efdbf to your computer and use it in GitHub Desktop.
# lib/resque/worker.rb:262
queues.each do |queue|
log! "Checking #{queue}"
if job = Resque.reserve(queue) # 最終的にはLPOP(http://redis.io/commands/lpop)が呼ばれる
log! "Found job on #{queue}"
return job
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment