You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resume_worker.rb
    path of file: ./repos/gitlabhq/app/workers/pause_control
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module PauseCo
    
    def perform
      reschedule_job = false

      pause_strategies_workers.each do |strategy, workers|
        strategy_klass = Gitlab::SidekiqMiddleware::PauseControl.for(strategy)

        next if strategy_klass.should_pause?

        workers.each do |worker|
          next unless jobs_in_the_queue?(worker)

          queue_size = resume_processing!(worker)
          reschedule_job = true if queue_size.to_i > 0
        end
      end

      self.class.perform_in(RESCHEDULE_DELAY) if reschedule_job
    end