From df24c51c6f39cefcc88af3d424a00f54cf797eb6 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 19 Jun 2018 15:49:45 +0800 Subject: [PATCH] Revert "FIX: Don't try to dequeue an empty queue." This reverts commit 1af7d4a894ad809de6424d043600e32e7c01bda9. --- lib/scheduler/defer.rb | 1 - 1 file changed, 1 deletion(-) 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