Created
October 19, 2015 07:08
-
-
Save shio-phys/ef9ceb9c865e135efdbf to your computer and use it in GitHub Desktop.
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
# 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