# frozen_string_literal: true

require 'sidekiq/processor'

module Sidekiq
  class Processor
    private

    public :process_one
    alias original_process_one process_one
    def process_one
      # sleep before grabbing jobs to decrease chance of missing priority queue
      sleep POLL_INTERVAL
      original_process_one
    end
    private :process_one
  end
end
