Revert "FIX: Don't try to dequeue an empty queue."
This reverts commit 1af7d4a894
.
This commit is contained in:
parent
41c1e1b302
commit
df24c51c6f
|
@ -62,7 +62,6 @@ module Scheduler
|
||||||
|
|
||||||
# using non_block to match Ruby #deq
|
# using non_block to match Ruby #deq
|
||||||
def do_work(non_block = false)
|
def do_work(non_block = false)
|
||||||
return unless @queue.size > 0
|
|
||||||
db, job, desc = @queue.deq(non_block)
|
db, job, desc = @queue.deq(non_block)
|
||||||
db ||= RailsMultisite::ConnectionManagement::DEFAULT
|
db ||= RailsMultisite::ConnectionManagement::DEFAULT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue