diff --git a/lib/sidekiq/api.rb b/lib/sidekiq/api.rb index fa31ba9f..6b6e9e70 100644 --- a/lib/sidekiq/api.rb +++ b/lib/sidekiq/api.rb @@ -227,7 +227,7 @@ module Sidekiq while true do range_start = page * page_size - deleted_size - range_end = page * page_size - deleted_size + (page_size - 1) + range_end = range_start + (page_size - 1) entries = Sidekiq.redis do |conn| conn.lrange @rname, range_start, range_end end