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: kill.rb
    path of file: ./repos/manageiq/app/models/miq_server/worker_management/monitor
    
    the code of the file until where you have to start completion: module MiqServer::WorkerManagement::Monitor::Kill
  extend ActiveSupport::Concern

  def kill_all_workers
    return unless my_server.is_local?

    kill_unknown_worker_processes
    kill_worker_processes
  end

  private

  def kill_unknown_worker_processes
    # We try, but forget to write migrations to delete orphaned worker class rows, causing this method
    # to blow up and cause the server to continually fail to start.
    # This is called very early from evm_application and ensures we attempt to c
    
  def kill_unknown_worker_processes
    # We try, but forget to write migrations to delete orphaned worker class rows, causing this method
    # to blow up and cause the server to continually fail to start.
    # This is called very early from evm_application and ensures we attempt to call MiqWorker#kill
    # to remove the problematic rows, and their in flight queue messages.
    bad_workers = miq_workers.where.not(:type => MiqWorker.descendants.map(&:name))
    if bad_workers.size.positive?
      begin
        MiqWorker.inheritance_column = "__disabled"
        kill_worker_processes(bad_workers)
      ensure
        MiqWorker.inheritance_column = "type"
      end