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: with_single_thread_materialization_scheduler_spec.rb
    path of file: ./repos/karafka/spec/integrations/pro/consumption/scheduling
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# When using a scheduler that would allow only a single thread, despite having more, we should
# never use them in any way
    
  def internal_manage
    @jobs_buffer.delete_if do |job|
      next unless @queue.statistics[:busy].zero?

      @queue << job
      @queue.unlock(job)

      true
    end
  end