class ManageIQ::Providers::Amazon::AgentCoordinatorWorker < MiqWorker
  require_nested :Runner

  include PerEmsWorkerMixin

  self.required_roles = ['smartproxy']

  def self.ems_class
    ManageIQ::Providers::Amazon::CloudManager
  end

  def self.desired_queue_names
    # All cloud managers will share the same agent coordinator
    super.any? ? ["ems_agent_coordinator"] : []
  end
end

class ManageIQ::Providers::Amazon::AgentCoordinatorWorker < MiqWorker
  require_nested :Runner

  include PerEmsWorkerMixin

  self.required_roles = ['smartproxy']

  def self.ems_class
    ManageIQ::Providers::Amazon::CloudManager
  end

  def self.desired_queue_names
    # All cloud managers will share the same agent coordinator
    super.any? ? ["ems_agent_coordinator"] : []
  end

  def self.kill_priority
    MiqWorkerType::KILL_PRIORITY_REFRESH_WORKERS
  end
end

Add worker kill priority to the AgentCoordinatorWorker
Add worker kill priority to the AgentCoordinatorWorker

This is needed in order to seed the MiqWorkerType model
