diff --git a/lib/scheduler/defer.rb b/lib/scheduler/defer.rb index 0c71e5e0b48..7a2e8f53cb4 100644 --- a/lib/scheduler/defer.rb +++ b/lib/scheduler/defer.rb @@ -62,7 +62,6 @@ module Scheduler # using non_block to match Ruby #deq def do_work(non_block = false) - return unless @queue.size > 0 db, job, desc = @queue.deq(non_block) db ||= RailsMultisite::ConnectionManagement::DEFAULT